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

YouTube Music Authentication fails unless cookies from Chrome used #98

Closed
Nikey646 opened this issue Sep 16, 2023 · 8 comments
Closed
Labels
help wanted Extra attention is needed

Comments

@Nikey646
Copy link

Describe the bug
Unable to log in to YouTube Music anymore.

To Reproduce
Steps to reproduce the behavior:

  1. Try to log in to the YouTube Music Source.

Expected behavior
To have the source working.

Logs
If possible reproduce the issue with debug logging ON

2023-09-16T17:21:07+10:00 error : [Sources] [Ytmusic - MyYTMusic] Cannot start polling because source is not authenticated correctly.
2023-09-16T17:21:07+10:00 info : [App] Scheduler started.
2023-09-16T17:21:05+10:00 warn : [Sources] ytmusic (MyYTMusic) source auth failed.
2023-09-16T17:21:05+10:00 debug : [Sources] Checking ytmusic (MyYTMusic) source auth...
2023-09-16T17:21:05+10:00 info : [Sources] ytmusic (MyYTMusic) source initialized
2023-09-16T17:21:05+10:00 debug : [Sources] Attempting ytmusic (MyYTMusic) initialization...
2023-09-16T17:21:05+10:00 debug : [Sources] (MyYTMusic) Constructing ytmusic source

Versions (please complete the following information):
Provide version information for any related sources/clients.

  • multi-scrobbler: [Updated on 16/9/23]
@mindlessp0tatoe
Copy link

Hello @Nikey646, I had a similar issue to this. Please see: #97

What fixed it for me was using google chrome (not Firefox or brave etc) as those did not work for me. Could you try installing chrome and trying again perhaps?

@Nikey646
Copy link
Author

Hello @Nikey646, I had a similar issue to this. Please see: #97

What fixed it for me was using google chrome (not Firefox or brave etc) as those did not work for me. Could you try installing chrome and trying again perhaps?

That is weird, and probably still a bug. Edge / Firefox don't work, and I imagine anything else besides chrome won't work.

@mindlessp0tatoe
Copy link

That is weird, and probably still a bug. Edge / Firefox don't work, and I imagine anything else besides chrome won't work.

Does this mean the issue is resolved with using chrome?

@Nikey646
Copy link
Author

That is weird, and probably still a bug. Edge / Firefox don't work, and I imagine anything else besides chrome won't work.

Does this mean the issue is resolved with using chrome?

I mean, the issue would be resolved when it can work from any browser. This is a work around, not a fix hence not closing the issue.

The base library that was originally used before forking to fix my other issue (#86) has been updated to include all cookies rather than the "required" cookies that were previously used to "future proof" may fix this.

@Nikey646 Nikey646 changed the title Youtube Authentication seems broken YouTube Music Authentication fails unless cookies from Chrome used Sep 17, 2023
@FoxxMD
Copy link
Owner

FoxxMD commented Sep 18, 2023

Unfortunately there's nothing I can currently do about this.

The NPM package at 1.6.0 of the base library youtube-music-ts-api does indeed make cookies retrieved from FF work. However, building the library from source at the 1.6.0 commit does not create a reproducible build

diff

and the source version does not work with FF cookies. I suspect the author published additional work in the NPM package that is not present in the repo.

Since the author has not yet merged my fix for #86 I cannot use the official build and since the source build does not work I cannot just update my downstream fork with the included fix.

So for now everyone will need to use chrome to get cookies. If you'd like to get this to resolved you can comment on my PR so the author will notice it?

@FoxxMD FoxxMD added the help wanted Extra attention is needed label Sep 18, 2023
@Nikey646
Copy link
Author

You're all good @FoxxMD, I understand there is nothing you can do right now, unfortunately it means this issue just kinda gets to sit open.

At least there is a work around and this issue clearly showing the work around for anyone looking for issues about YouTube Music, as un-ideal as the solution is.

@FoxxMD
Copy link
Owner

FoxxMD commented Sep 19, 2023

The upstream library merged my PR for #86 and I've updated MS to use the latest version which includes the cookies fix. You can try it on develop git branch or docker image.

@FoxxMD
Copy link
Owner

FoxxMD commented Oct 4, 2023

This is included in 0.6.0. I'll re-open this if there are still issues.

@FoxxMD FoxxMD closed this as completed Oct 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants