Skip to content

Commit 5468a07

Browse files
committed
Fix for item ID fetch in lodesetone character endpoint
1 parent 6af8984 commit 5468a07

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: src/Lodestone/Parser/ParseCharacter.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,8 @@ private function parseEquipGear()
130130

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

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

0 commit comments

Comments
 (0)