Youtube-TV
Youtube-TV copied to clipboard
Set limit of videos to loaded from a playlist?
Could we have a setting to choose how many video to load form a playlist or is a limit of the API?
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.