-
-
Notifications
You must be signed in to change notification settings - Fork 28
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
Doesn't work with ytmusicapi==1.x.x and pytube==15.x.x #71
Comments
Maybe this should be in |
Check this https://github.com/pytube/pytube/pull/1691 I've been searching the web for two days, but finally found the solution. Rename your actual cipher.py to cipher.py.old o whatever. Create a new file named cipher.py, and paste the code from the last fixed cipher.py on git https://github.com/yogeshgirmal/pytube/blob/b0c9de965f7ec8b3140cc5a5a9eb15c039a5bd79/pytube/cipher.py Restart mopidy, done. |
@herkow this needs one more patch now: pytube/pytube#1756 Upd: still doesn't work for me. Some other people report that the fix doesn't work for them too. |
@selurvedu Today I tried to play some music and it didn't work.
to
and now it's working. Make sure you are using the cipher.py from the yogeshgirmal repo, not the official. |
@herkow that's exactly what I did. Just tried it again and still getting |
Let's give it a last shot... rename your actual cipher.py to whatever you like, create a new one and paste this:
Restart mopidy, and let's see if it works. |
I just want to say I tested it and it still works without issues on up to date Ubuntu with the workaround I mentioned in the first post. Although I have same issues as everyone on Arch / Manjaro so it'd be beneficial if this PR got accepted. |
Something strange is happening now. When I "sing-in" to my account via the auth_json file, I can not play (and can not search) any tracks. But when Youtube de-authorizes me, I can search and play. Is this happening to you to? |
@herkow Sorry for late response. I switched to jmcdo29's fork of this repository. edit: the PR got accepted, jmcdo29's repo is the most current one right now |
Just like the AUR and as suggested in OzymandiasTheGreat/mopidy-ytmusic#71 we switch to a fork which uses a more recent version of ytmusicapi. Diff: jmcdo29/mopidy-ytmusic@v0.3.8...v0.3.9 Changelog: https://github.com/jmcdo29/mopidy-ytmusic/releases/tag/v0.3.9
I've installed from jmcdo29, but it cannot even setup:
The main purpose of setup is to CREATE the key. |
You need
Run |
Still unable to setup:
|
Well, I've been trying to solve this, and cloned the repo (which says v0.3.9) just in case git+ is doing something crazy... But when I check the installed version, still shows 0.3.8... Last shot was to copy the old auth.json to oauth.json and now YTMusic appears in the client but is not possible to search, I can only access to YTMUSIC lists (mosts palyed, best of my country, etc.) There is no way to excute ytmusic setup and of course is not possible to reauth. Any ideas? BTW, I'm using Debian 12. More workaround here, and now I've switched to ytmusicapi 0.25.0. I can search and play, but still can't setup, and the reauth is missing something, since it never asks for the credentials:
|
@herkow I have no idea what you've done but you definitely had some mismatch in your installed packages because this:
says you don't have I see you've managed to fix that part and the function imports and calls but on my setup it opens the default browser (or at least displays the URL to open in the browser manually) to login to YT, however, I'm not using return RefreshingToken.prompt_for_token(oauth_credentials, open_browser, filepath) |
Both
ytmusicapi
andpytube
got updated beyond of what version0.3.8
works with so the workaround is to install older versions instead:(then restart
mopidy
)The text was updated successfully, but these errors were encountered: