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

load complete youtube playlists #62

Open
select opened this issue Aug 3, 2018 · 3 comments
Open

load complete youtube playlists #62

select opened this issue Aug 3, 2018 · 3 comments

Comments

@select
Copy link
Owner

select commented Aug 3, 2018

for now only the first 50 items are added

@illtellyoulater
Copy link

I agree, this is an heavy limitation, why only load the first 50 tracks?

@select
Copy link
Owner Author

select commented Aug 4, 2021

That was the easiest to implement, did not have to deal with pagination this way

@illtellyoulater
Copy link

illtellyoulater commented Aug 6, 2021

@select I implemented pagination in another project of mine, it's really easy to do: when you receive the first 50 results they also come with a token for obtaining the next results (when available). So you check for presence of this token, and if it's there, then at the end of your function for requesting playlist videos, you call the function again recursively, this time providing the token for the next page of results. This way the function runs until it obtains all playlist videos, and will stop as soon as the token is no longer received.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants