yt icon indicating copy to clipboard operation
yt copied to clipboard

channel.videos.where(max_results: 2) generates 2 queries

Open Paprikas opened this issue 4 years ago • 2 comments

Found it with VCR gem. The difference is that the second query has pageToken=<TOKEN> parameter and there is different videos (i guess because of sorting)

Paprikas avatar Sep 16 '20 16:09 Paprikas

Can you point out a case in which this is happening? I think it could be something related to sorting and/or the way Yt tries to workaround the search endpoint's 500 video limit (see https://github.com/Fullscreen/yt/issues/363 for more info).

dgb avatar Dec 17 '20 01:12 dgb

Hi @dgb I think it depends on how many videos channel contains. With one video - only one request sent. Tested on channel with 59 videos - two requests.

Paprikas avatar Dec 21 '20 04:12 Paprikas

Probably because Yt fetches 50 videos at a time to get metadata after searching the first 50 videos. If you have further concerns let us know

kangkyu avatar Oct 29 '22 20:10 kangkyu