mirror of
https://github.com/sigma67/ytmusicapi.git
synced 2026-04-24 23:06:13 +03:00
[GH-ISSUE #778] Validated continuations for playlists #498
Labels
No labels
a/b
bug
documentation
enhancement
good first issue
help wanted
invalid
pull-request
question
wontfix
yt-error
yt-update
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ytmusicapi#498
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Pachandre on GitHub (Jun 19, 2025).
Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/778
Is your feature request related to a problem? Please describe.
Yes. The
get_album()method has alimitparameter, but it only limits how many tracks are retrieved starting from the beginning of the playlist. This becomes inefficient when dealing with large playlists. Settinglimit=Nonedoesn't fetch all tracks either (possibly due to a YouTube-imposed limit); I only get 1914 out of 2054 tracks of my liked songs playlistDescribe the solution you'd like
It would be helpful to have support for pagination via
offsetandcountparameters (or similar). For example, to retrieve tracks in batches, one could first requestoffset=0, count=100, thenoffset=100, count=100, and so on. This would make it easier to process large playlists incrementally and avoid performance issuesDescribe 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
@sigma67 commented on GitHub (Jun 20, 2025):
Something like this is already implemented, but only for
get_library_songs. Feel free to send a PR for the function you would like (I assumeget_playlist).github.com/sigma67/ytmusicapi@445833f420/ytmusicapi/mixins/library.py (L108)"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."
This makes no sense to me. Why are you using
get_albumto fetch playlists?@Pachandre commented on GitHub (Jun 20, 2025):
My bad, meant to write
get_playlist@lovegaoshi commented on GitHub (Jul 3, 2025):
im happy to be corrected but i doubt an offset parameter even exists to begin with.
@sigma67 commented on GitHub (Jul 4, 2025):
It doesn't, the approach is too keep retrying until you have the expected amount