mirror of
https://github.com/sigma67/ytmusicapi.git
synced 2026-04-25 15:26:01 +03:00
[GH-ISSUE #179] Passing a playlist id to get_watch_playlist gives an exception #137
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#137
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 @jbruechert on GitHub (Mar 20, 2021).
Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/179
Albums and tracks work just fine with get_watch_playlist, but playlists don't (if I'm not doing something wrong).
Ther error is:
A simple test case:
@sigma67 commented on GitHub (Mar 20, 2021):
You need to call it like this
yt.get_watch_playlist(playlistId="PLMOhiB5NIEx7us1pGnMZXGcN6dSL45uZu")@jbruechert commented on GitHub (Mar 20, 2021):
Sorry, I messed up the test case. The error still occurs with
too
@jbruechert commented on GitHub (Mar 20, 2021):
I must have messed up the playlist id too, thank you for the help.
@jbruechert commented on GitHub (Mar 20, 2021):
Just in case someone finds this useful: I don't really understand why, but it is always necessary to remove the "VL" from the beginning of the playlist IDs.
@sigma67 commented on GitHub (Mar 20, 2021):
Yes, that's why I removed the VL in my comment above.
YouTube sometimes uses the VL prefix internally. I think it's mainly a prefix to differentiate actual playlists from radio playlists and others. Some other endpoints like get_playlist can already handle the VL prefix, I suppose we could add something to `get_watch_playlist_ as well.