Closed tomtoump closed 8 years ago
This happens in any endpoint with paginated results.
As far as I can tell it only happens on the /kraken/channels/:channel/videos
endpoint. If you have an example of it affecting other endpoints please let me know.
Meanwhile I'll investigate why it's happening on the videos endpoint. Thanks!
I didn't notice it happening on any other endpoints when I checked it yesterday.
I was wrong. It doesn't happen on any endpoint, but only those related to videos. Apart from /channels/:channel/videos
, /videos/top
and /videos/followed
are also affected.
Seems to be fixed now.
The pagination issue seems indeed fixed, but the _total
is the number of videos returned from the current query instead of the expected total videos of the channel.
@tomtoump @Fugiman I just fixed the bug where _total
points to the number of videos returned from the current query. It should be working now
limit=1&offset=0
returns 1 object as expectedlimit=1&offset=1
returns 2 objectsIt's like the limit is set to the sum of limit and offset, and offset is always 0. This happens in any endpoint with paginated results.