Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Match 'X-Goog-AuthUser' during setup. #46

Closed
larntz opened this issue Jul 16, 2020 · 3 comments
Closed

Match 'X-Goog-AuthUser' during setup. #46

larntz opened this issue Jul 16, 2020 · 3 comments

Comments

@larntz
Copy link

larntz commented Jul 16, 2020

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:

X-Goog-AuthUser: 2

But the generated header_auth.json was using:

"X-Goog-AuthUser": "0"

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.

@larntz larntz changed the title Add 'X-Goog-AuthUser' during setup. Match 'X-Goog-AuthUser' during setup. Jul 16, 2020
@sigma67
Copy link
Owner

sigma67 commented 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 pushed a commit that referenced this issue Jul 18, 2020
@sigma67
Copy link
Owner

sigma67 commented Jul 18, 2020

Can you please verify that the issue is fixed with the latest commit?

@sigma67 sigma67 closed this as completed Jul 20, 2020
@gaganpreet
Copy link
Contributor

Unfortunately this commit wasn't enough, I added X-Goog-AuthUser to required_headers to make it work correctly. I'll create a PR shortly with my fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants