-
Notifications
You must be signed in to change notification settings - Fork 877
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
Migrate the Playlist page to youtubei.js #2903
Migrate the Playlist page to youtubei.js #2903
Conversation
Different types of playlist urls: Explore page playlist: Regular playlist: Channel videos (autogenerated): |
I got issue loading https://m.youtube.com/playlist?list=RDCLAK5uy_nxNaxtS5HwGabWeGHsAADVA4KKl5l12eQ The other 2 playlists got no issue |
They are mostly supported just need a few changes upstream to make them work properly. The thumbnails array for the playlist author is empty but as all the other information is there, it seems worth it. |
Marking this as WIP until LuanRT/YouTube.js#251 is merged or discussed. |
Pull request was converted to draft
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
e3559fc
to
9446765
Compare
Conflicts have been resolved. A maintainer will review the pull request shortly. |
9446765
to
01a8eef
Compare
Conflicts have been resolved. A maintainer will review the pull request shortly. |
The upstream PR has been merged but I'll leave this as a draft until it's included in a release. |
A new release was published fyi |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This?
825f595
to
61e7a52
Compare
This is ready for review now, rebased it on the development branch so it can be tested with the latest youtubei.js version. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All 3 loaded fine
Migrate the Playlist page to youtubei.js
Pull Request Type
Description
This replaces the use of ytpl on the playlist page with youtubei.js, it doesn't implement pagination yet, as I feel like that should be implemented for the Invidious API at the same time.
I also haven't touched the playlist view on the watch page yet, currently we force ytpl to paginate the playlist and return all the videos in one go (takes ages), YouTube on the other hand only shows 200 videos on the watch page, so maybe we want to switch to only showing a few pages of the playlist on the watch page?
Testing
Try viewing various playlists, it should behave the same as before.
Desktop
Additional context
Love having autocomplete.