adaliabooks: Edit: Not sure where the issue is, probably with my bundle cover finder, but a few games seem to falsely identify as part of the Zork anthology... :/
mrkgnao: Given that this is the last unbundled game, I would guess that some variable is not reset to undefined/unknown and maintains the last value obtained from scanning the list on unbundles.
Yeah, something like that. The bundle finding code seems not to be fool proof (but nothing that I can't sort manually, thanks to MaGoG :)) but I've fixed a few obvious errors and I'll take a look at the code and see what I might have done wrong.
Can't see anything wrong with the code.. the only thing I can think of is that it's falling through somehow and just defaulting to the last item in the list...
Here's the code I'm using (in case anyone else can spot why it might do it)
foreach($idsArray as $item) {
if (strpos($item["unbundles_str"], $id) !== false) {
$legacyUrls[$id]["bundleId"] = $item["id"];
print_r($legacyUrls[$id]);
unset($missingUrls[$id]);
}
}
And this is the JSON output it's looping through:
[url=http://www.an-ovel.com/cgi-bin/magog.cgi?ver=663&scp=gdspur&dsp=iD&ord=&flt=Diu~1~&opt=j]http://www.an-ovel.com/cgi-bin/magog.cgi?ver=663&scp=gdspur&dsp=iD&ord=&flt=Diu~1~&opt=j[/url]