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

Have keys changed? x-goog-authuser #40

Open
karl0ss opened this issue Nov 1, 2021 · 3 comments
Open

Have keys changed? x-goog-authuser #40

karl0ss opened this issue Nov 1, 2021 · 3 comments

Comments

@karl0ss
Copy link

karl0ss commented Nov 1, 2021

I am trying to install this today on a Rpi3 using my YouTube music premium account.

I have logged in to YTM on FireFox and navigate about, find the /browse "POST" options and right click copy reqest headers, when I paste into the terminal I am getting


ERROR    [MainThread] mopidy_ytmusic YTMusic setup failed
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/dist-packages/mopidy_ytmusic/command.py", line 40, in run
    print(YTMusic.setup(filepath=str(path)))
  File "/usr/local/lib/python3.7/dist-packages/ytmusicapi/ytmusic.py", line 164, in setup
    return setup(filepath, headers_raw)
  File "/usr/local/lib/python3.7/dist-packages/ytmusicapi/setup.py", line 38, in setup
    + ". Please try a different request (such as /browse) and make sure you are logged in."
Exception: The following entries are missing in your headers: x-goog-authuser, cookie. Please try a different request (such as /browse) and make sure you are logged in.

When I look in the firefox console I can see that i do have x-goog-authuser but its in a different case/format

X-Goog-AuthUser: 0

Is your code case sensitive? also, is it expected to see 0 as the response here esp as i am logged in (and playing one of my "liked" songs..

Hope someone can help.

Thanks

@karl0ss
Copy link
Author

karl0ss commented Nov 2, 2021

Not too sure what the issues with the setup is, but I manually created the auth.json follow the format from -https://github.com/OzymandiasTheGreat/mopidy-ytmusic/issues/1#issuecomment-662394006

Then just copied the details from Firefox /browse command, all working fine now and i can play my songs, so the details were def in the request header..

@IfedayoAwe
Copy link

I also tried using the YTmusic api and received the same set of errors, I am currently trying to manually create the headers_auth.json file but I'm having difficulties, it's still not working and I'm not sure what I'm doing wrong and the link you included doesn't lead anywhere, please I need help on how you did it.

@karl0ss
Copy link
Author

karl0ss commented Jun 9, 2022

Here is the link to the correct issue - #1

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

2 participants