mopidy-ytmusic
mopidy-ytmusic copied to clipboard
Support for latest ytmusicapi
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.
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
I've widened the version requirements for ytmusicapi, so this should be fixed with 0.3.8.
Works fine with 0.24.0
and 0.25.0
(current - just updated).
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?
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
#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
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.