justintv / Twitch-API

A home for details about our API
www.twitch.tv
1.72k stars 381 forks source link

GET /channels/:channel/videos returns inconsistent amount of videos #649

Open carantunes opened 7 years ago

carantunes commented 7 years ago

GET /channels/:channel/videos?broadcasts=true&limit=100 is returning inconsistent total of videos. Probably is ignoring broadcasts=true sometimes.

First run: channel:popedave _total:25 count(videos):25 channel:rickeybot _total:20 count(videos):20 channel:ryanyags _total:61 count(videos):61 channel:corleoninho _total:0 count(videos):0 channel:dreamhackhs _total:4 count(videos):4 channel:playhearthstone _total:119 count(videos):100 channel:teaminven _total:32 count(videos):32 channel:shubalou _total:9 count(videos):9 channel:slimmyshank69 _total:33 count(videos):33 channel:corwins _total:11 count(videos):11 channel:divinegreen _total:6 count(videos):6 channel:hunrizzletv _total:9 count(videos):9 channel:elded _total:19 count(videos):19 channel:ive_lp _total:9 count(videos):9

Second run: channel:popedave _total:31 count(videos):31 channel:rickeybot _total:20 count(videos):20 channel:ryanyags _total:61 count(videos):61 channel:corleoninho _total:0 count(videos):0 channel:dreamhackhs _total:100 count(videos):100 channel:playhearthstone _total:219 count(videos):100 channel:teaminven _total:730 count(videos):100 channel:shubalou _total:12 count(videos):12 channel:slimmyshank69 _total:33 count(videos):33 channel:corwins _total:11 count(videos):11 channel:divinegreen _total:6 count(videos):6 channel:hunrizzletv _total:15 count(videos):15 channel:elded _total:47 count(videos):47 channel:ive_lp _total:9 count(videos):9

vboiteau commented 7 years ago

I'm having the same issue, the total jumps between the number with broadcasts set to true and the default without the broadcasts attribute set.

carantunes commented 7 years ago

It seems they've changed the query params. Now it's broadcast_type=archive. I've tried it at seems stable