Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate playlists on the watch page to YouTube.js #2969

Merged

Conversation

absidue
Copy link
Member

@absidue absidue commented Dec 15, 2022

Migrate playlists on the watch page to YouTube.js

Pull Request Type

  • Feature Implementation

Description

This pull request migrates the playlists view on the watch page to YouTube.js, this removes the need for the ytpl dependency, as the playlist page was migrated in an earlier PR. Yay! 馃槃

Like the previous implementation this will paginate through the entire playlist, which means the playlist view is slow to load for lots of videos, however the benefits of having all videos there outweigh the wait. In the future we might want to introduce a timeout and then just show the videos that have been fetched up until then.

Testing

playlist with 100 videos, only a single page
https://www.youtube.com/playlist?list=PL4fGSI1pDJn6puJdseH2Rt9sMvt9E2M4i

playlist with 872 videos, multiple pages
https://www.youtube.com/playlist?list=PLbMjU_TVMIFvmkQ871iUvE5gy5ezXc6hE

Desktop

  • OS: Windows
  • OS Version: 10
  • FreeTube version: 0.18.0

@FreeTubeBot FreeTubeBot enabled auto-merge (squash) December 15, 2022 22:40
@github-actions github-actions bot added PR: dependencies Pull requests that update a dependency file PR: waiting for review For PRs that are complete, tested, and ready for review labels Dec 15, 2022
Copy link
Collaborator

@PikachuEXE PikachuEXE left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Could u open a pr to remove the dependency from the docs

@FreeTubeBot FreeTubeBot merged commit c912435 into FreeTubeApp:development Dec 16, 2022
@github-actions github-actions bot removed the PR: waiting for review For PRs that are complete, tested, and ready for review label Dec 16, 2022
@absidue absidue deleted the watch-playlist-youtubei branch December 17, 2022 09:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR: dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants