-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix long playlists (100+ videos) #1911
Fix long playlists (100+ videos) #1911
Conversation
This comment has been minimized.
This comment has been minimized.
What are the differences with #1909 ? PS: CI must be fixed. |
All playlists mentonned there work, being 300 or 5k videos ones and the continuation token was fixed too (so we can have pages >= 2)
Yup, I know. I'll go on for the "dummy request index" (option 1), then, so if YT does take that into account in the future, that won't be a problem. PS: Also I don't care about the bounty. |
Well, this is great then!
Alright, I'll wait for this to be done before I ask saltycrys to review.
You're sure? You deserve it. If you really don't want it, we can send it to someone else you choose if you want. |
3160375
to
c00f9b4
Compare
c00f9b4
to
de6db41
Compare
It's fixed, all CI tests pass now :)
I don't really like cryptos, tbh. Plus I stardted working on it before any bounty were added. I know someone who was very excited about that bounty, tho :P |
I'll surely test this PR tonight, if everything works I'll merge it. @SamantazFox what is your decision about the reward? |
@TheFrenchGhosty Ah, yeah, I didn't fix the HTML template nor the paging code. Oh, and BTW, I don't have page 11. It stops at page 10 for me. Maybe some videos are geo-blocked? |
Here we go. That's fixed :) |
I test that on my instance on https://pussthecat.org so it's in Germany. It's possible that it's geo-bocked in France yeah. |
Tested: works perfectly! The fact that when going over the page number you get redirect to the last page: invidious/src/invidious/routes/playlists.cr Line 439 in 23e5b6b
|
Merged. Thanks for the review @saltycrys Thanks @SamantazFox and @tenpura-shrimp If you really don't want the reward we'll surely just use this money for another bounty. |
glad you like it ^^ |
@SamantazFox I mean, it's a clever way to limit it without displaying an "error" page, and actually useful. So yeah, it's cool! :) |
@SamantazFox I think this PR is breaking comments by adding |
This pull request has been automatically locked since there has not been any activity in it in the last 30 days. If you want to tell us about needed or wanted changes or if problems related to this code are discovered, feel free to open an issue or a new pull request. |
This should fix issue #1883.
I've also made some changes in
src/invidious/channels.cr
because both channel and playlist videos require a call to[YT]/youtubei/v1/browse
, so I made a common wrapper (it will ease future updates if the key or client version strings change).