Skip to content

Commit

Permalink
Fix for item ID fetch in lodesetone character endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
Supamiu committed Mar 16, 2021
1 parent 6af8984 commit 5468a07
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Lodestone/Parser/ParseCharacter.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,8 @@ private function parseEquipGear()

// get lodestone id
$lodestoneId = $node->find('.db-tooltip__bt_item_detail a')->attr('href');
$item->ID = trim(explode('/', $lodestoneId)[5]);
$explodedLodestoneId = explode('/', $lodestoneId);
$item->ID = trim($explodedLodestoneId[count($explodedLodestoneId) - 1]);

// get category
// this is a bit buggy for crafters, eg: https://eu.finalfantasyxiv.com/lodestone/character/17650647
Expand Down

0 comments on commit 5468a07

Please sign in to comment.