mopidy-ytmusic icon indicating copy to clipboard operation
mopidy-ytmusic copied to clipboard

Support for latest ytmusicapi

Open fabaff opened this issue 2 years ago • 7 comments

ytmusicapi was released as 0.24.0 a couple of days ago with some breaking changes.

A quick search in the source showed that get_playlist_suggestions and get_watch_playlist_shuffle are not used.

Currently there is a constraint present ytmusicapi>=0.22.0,<0.23.0 which will break packages shipped by distributions when they update ytmusicapi.

Any chance to get support for 0.24.0?

Thanks.

fabaff avatar Oct 09 '22 15:10 fabaff

Already happened for Manjaro (which is 2 weeks behind Arch so it's safe to say it's broken for Arch as well):

Disabled extension ytmusic: ytmusicapi<0.23.0,>=0.22.0 required, but found ytmusicapi 0.24.0 at /usr/lib/python3.10/site-packages

As a workaround you can install older version manually, e.g.:

pip install ytmusicapi==0.22.0

cprn avatar Nov 29 '22 08:11 cprn

I've widened the version requirements for ytmusicapi, so this should be fixed with 0.3.8.

impliedchaos avatar Nov 29 '22 20:11 impliedchaos

Works fine with 0.24.0 and 0.25.0 (current - just updated).

cprn avatar Feb 15 '23 21:02 cprn

At this point with 1.0 and up released there's new authentication workflow as well (it can do proper OAuth now!). So, what will it take to get updated to that?

jclds139 avatar Apr 19 '23 22:04 jclds139

I've got a basic PR in that makes ytmusicapi >= 1.0.0 work, ~~but nothing about supporting OAuth yet~~ PR now supports OAuth too. I'm not sure well versed in python so I didn't dive much into getting that part working, just wanted to fix it on my Arch system

jmcdo29 avatar Apr 20 '23 18:04 jmcdo29

#71 can be marked as duplicate of this issue. Then only thing worth mentioning: if you want to run mopidy-ytmusic before this PR is accepted you'll have to:

pip uninstall ytmusicapi
pip install ytmusicapi==0.25.2
pip install pytube==12.1.0

cprn avatar Apr 30 '23 16:04 cprn

It could really be nice that this project lives again, since oAuth is officially supported. The expiring auth credentials were so annoying I had given up on Mopidy-YTMusic. There is a PR #73 waiting for this awesome software to become usable again.

shad-lp avatar Nov 18 '23 17:11 shad-lp