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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed get_playlist is limited to 100 videos #64

Merged
merged 1 commit into from
Jul 26, 2024

Conversation

Klesh-
Copy link
Contributor

@Klesh- Klesh- commented Jul 21, 2024

The error occurred because the playlists contained two continuationEndpoint elements.

  • One for the video list.
  • The second one is for recommended videos.

get_next_data always selects the last one, so it tried to get videos from recommended ones, not from a playlist.

So i added a parent selector, to select list of videos first and then select individual videos and appropriate continuation item.

Tested for channels and search as well.

Issues: #55, #45

@dermasmid
Copy link
Owner

thank you!

@dermasmid dermasmid merged commit 8fd5b4f into dermasmid:master Jul 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants