mirror of
https://github.com/sigma67/ytmusicapi.git
synced 2026-04-25 23:36:00 +03:00
[GH-ISSUE #46] Match 'X-Goog-AuthUser' during setup. #35
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#35
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 @larntz on GitHub (Jul 16, 2020).
Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/46
Thanks for writing this! I was playing around with it and noticed that during setup it does not copy the number from the request header X-Goog-AuthUser.
In the pasted headers from firefox contained:
But the generated header_auth.json was using:
This was causing my liked songs, playlists, etc to be pulled from different google account that I don't use with youtube music.
I have a few google accounts. I'm not sure how google handles all that. This particular account is not a brand account, and I didn't notice this in the docs so thought I'd let you know.
I noticed the AuthUser number matches this url when selecting the correct account: https://myaccount.google.com/u/2/?pli=1 (the 2 changes to 0 on my default account).
I changed the value X-Goog-AuthUser to match the firefox request headers and it worked perfectly.
Thanks again! Let me know if you need more info.
@sigma67 commented on GitHub (Jul 17, 2020):
Good point, I always used the first account in the list so I didn't notice. Should be an easy fix in
setup.py.@sigma67 commented on GitHub (Jul 18, 2020):
Can you please verify that the issue is fixed with the latest commit?
@gaganpreet commented on GitHub (Nov 1, 2020):
Unfortunately this commit wasn't enough, I added
X-Goog-AuthUserto required_headers to make it work correctly. I'll create a PR shortly with my fix.