Example, at this moment:
Your list:
http://api.justin.tv/api/stream/summary.xml?category=gaming
shows 1494 total current streams.
Using your API to retrieve a list (using an offset of +100 each loop)
returns also returns 1494 after ~10 seconds.
BUT, when I remove duplicates (because I can visually see them) using
(PHP):
function removeDuplicatesFromMultiArray($multiArray)
{
$serialized = array_map('serialize', $multiArray);
$unique = array_unique($serialized);
return array_intersect_key($multiArray, $unique);
}
I see 1272 (which is the actual correct number).
Please take a look at your generated list, and see why it is producing
duplicates.
Example of a duplication (which I've formatted):
157 - Twitch - World of Warcraft - bloodlegion - Heroic Alt Raid #2!
Live Now. Heroic Dragonsoul 1 shotting on Alts.
157 - Twitch - World of Warcraft - bloodlegion - Heroic Alt Raid #2!
Live Now. Heroic Dragonsoul 1 shotting on Alts.
157 - Twitch - World of Warcraft - bloodlegion - Heroic Alt Raid #2!
Live Now. Heroic Dragonsoul 1 shotting on Alts.
Note: Most duplicates are happening around every 100ish entries
(sometimes visible around 101, 206 etc.)
Thanks!