garret1317 / yt-dlp-rajiko

improved radiko.jp extractor for yt-dlp
https://427738.xyz/yt-dlp-rajiko/
Other
23 stars 1 forks source link

paginate search #13

Closed garret1317 closed 11 months ago

garret1317 commented 11 months ago

currently only does a few items, not all

from the discord:

OnDemandPagedList if you know how many videos each playlist page will yield (and it's constant) InAdvancePagedList if you know how many total videos/pages are in the playlist before pagination generator if you know neither of these things

Adding to this, note that pagedlists only work if the URL for the pages is static in addition to knowing videos per page. So, sites with cursors like youtube is forced to use generators. The advantage of pagedlist over generators is that user can do -I 100-120 etc without downloading earlier pages.

garret1317 commented 11 months ago

good test search: https://radiko.jp/#!/search/live?key=%E3%83%8B%E3%83%A5%E3%83%BC%E3%82%B9 ("ニュース" = news) - every prefecture, past, present, and future 9941 results at time of writing