mirror of
https://github.com/sigma67/ytmusicapi.git
synced 2026-04-25 07:16:00 +03:00
[GH-ISSUE #291] Feature request: Scraping the queue for tracks around a given track in a playlist #228
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#228
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 31, 2022).
Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/291
I have been thinking about a way to get a range of tracks from a given playlist rather than getting the entire playlist at once and then slicing it.
Recently I realized that youtube music supports links in the form of
music.youtube.com/watch?v=VIDEO_ID&list=PLAYLIST_ID, which returns the track and the tracks around the requested track in the requested playlist.This doesn't quite work out as a range of tracks from one index to another, but it loads much less than a full reload of the playlist, and could therefore be used to optimize some functionality.
@sigma67 commented on GitHub (Sep 1, 2022):
You should already be able to do this using
get_watch_playlist, which supports both parameters. Feel free to play around with it.