mirror of
https://github.com/sigma67/ytmusicapi.git
synced 2026-04-25 23:36:00 +03:00
[GH-ISSUE #288] Ability to request a range of songs in a playlist #225
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#225
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 @AntonBogun on GitHub (Aug 9, 2022).
Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/288
I have just started using this API and it looks like there is no way to only request a specific range of songs in a playlist rather than all the songs from
0ton*100(rounded uplimit/100inget_playlistfrom my initial testing).From what I understand the functionality in youtube's actual API should be there as the songs load in batches of 100s in large playlists, and I am assuming the previously loaded songs are not discarded in the process.
@sigma67 commented on GitHub (Aug 15, 2022):
You can only load the playlist incrementally starting from the first entry, as in the web interface. Getting a subset of the loaded items is as simple as using Python array slicing syntax
[:]