Skip to content

Validated continuations for playlists #778

Description

@Pachandre

Is your feature request related to a problem? Please describe.
Yes. The get_album() method has a limit parameter, but it only limits how many tracks are retrieved starting from the beginning of the playlist. This becomes inefficient when dealing with large playlists. Setting limit=None doesn't fetch all tracks either (possibly due to a YouTube-imposed limit); I only get 1914 out of 2054 tracks of my liked songs playlist

Describe the solution you'd like
It would be helpful to have support for pagination via offset and count parameters (or similar). For example, to retrieve tracks in batches, one could first request offset=0, count=100, then offset=100, count=100, and so on. This would make it easier to process large playlists incrementally and avoid performance issues

Describe alternatives you've considered
None that are practical or reliable - manually adjusting the limit and re-requesting from the start is inefficient and doesn't solve the problem

Additional context
This feature would be especially useful for users trying to fully export or analyze large playlists

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions