mirror of
https://github.com/sigma67/ytmusicapi.git
synced 2026-04-26 07:46:00 +03:00
[GH-ISSUE #462] parsing returned playlist fails when using browser header based authentication #345
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#345
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 @mgoltzsche on GitHub (Oct 22, 2023).
Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/462
Describe the bug
get_liked_songs()function fails withKeyError: 'setVideoId'within the playlist parser when authenticated using a browser.json file with headers copied from the browser.To Reproduce
To reproduce the problem, run the following with
headerscontaining the HTTP request headers from a POST/browserequest listing your liked videos on music.youtube.com:The
get_liked_songs()call fails with the following error:Additional context
The error happens only when using browser header authentication. It does not happen when using OAuth.
Issue #450 might be related.
@sigma67 commented on GitHub (Oct 23, 2023):
You must be using different accounts, I don't see why there should be any difference between browser auth and oauth.
This is probably part of some A/B test, so I'm a bit hesitant to merge.
setVideoIdis also essential to move items within a playlist, so the fix isn't to just ignore it if it's not there. Instead we need to find the new location within the data (or the new mechanism if it works entirely different now).