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

Set limit of videos to loaded from a playlist? #40

Open
snowliondev opened this issue Feb 19, 2015 · 1 comment
Open

Set limit of videos to loaded from a playlist? #40

snowliondev opened this issue Feb 19, 2015 · 1 comment

Comments

@snowliondev
Copy link

Could we have a setting to choose how many video to load form a playlist or is a limit of the API?

@Giorgio003
Copy link

YouTube API v2.0 – API Query Parameters
max-results - The default value of this parameter is 25, and the maximum value is 50.

YouTube API v3.0 – Playlists: list
maxResults - Acceptable values are 0 to 50, inclusive. The default value is 5.

Youtube-TV is set to the maximum of 50, but it would be possible to add a setting to lower the value.

It's also looks possible to query a second time adding in a start-index of 51 by either creating a next page option or appending results of the returned JSON.

However API v3 changes this by using pageTokens for next and previous pages.If you're looking to have more than 50 in a playlist (ie playlist of music I'm guessing) it should still be possible but different integration from v2; thus I'll look to add paged and full list when switch my fork to API v3.

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

No branches or pull requests

2 participants