Iris icon indicating copy to clipboard operation
Iris copied to clipboard

Support for mopidy-ytmusic?

Open DIYglenn opened this issue 3 years ago • 14 comments

The mopidy-ytmusic plug-in seems to be the best way of getting YouTube Music working with Mopidy.

This means that while YouTube Music (Premium) works, it is a bit clumsy under Iris, as you have to “Browse” menus. It also seems like “Artist” etc doesn’t work, but that could be a current limitation of the plug-in.

Is there any chance that Iris could get integrated YT Music support? I like Spotify, but the YouTube Premium family subscription is something we appreciate as there are no ads in videos etc.

B8FF90A2-6BB4-45A0-83BA-AB5A94C95A7E

DIYglenn avatar Mar 18 '21 17:03 DIYglenn

I would also be very interested in this feature.

rebernet avatar Apr 02 '21 08:04 rebernet

Further investigation will be needed. I have found that to achieve a rich experience (like that of Spotify), the provider should have a HTTP API that Iris can communicate directly with.

This may be possible with Youtube API v3.

jaedb avatar Apr 07 '21 08:04 jaedb

Please be take note of the API terms, we had problems before.

kingosticks avatar Apr 07 '21 09:04 kingosticks

Please be take note of the API terms, we had problems before.

But is that related to Music though, or only YouTube “Video”?

DIYglenn avatar Apr 07 '21 12:04 DIYglenn

That is related to using the Youtube API v3, there previously was no distinction between music and video. I don't know what Music-specific APIs now exist. What I am saying is whatever YouTube API you end up using, just be careful to comply with the ToS as they do enforce them and losing access to your personal Google account can be particularly awkward.

kingosticks avatar Apr 07 '21 13:04 kingosticks

Mopidy-YTMusic is actually a relatively capable backend (despite needing a hands-on authentication) so it may not require a HTTP integration. I think my preferred way to handle this is to allow users to set the URIs used to populate My Music sections (not just the Browse section).

jaedb avatar Apr 16 '21 22:04 jaedb

I can confirm, the Mopidy-YTMusic backend works quite well. But only with Search and clicking on the Artist in the collected result. When selecting an album it appears empty (with no tracks).

rebernet avatar Apr 25 '21 15:04 rebernet

I can confirm, the Mopidy-YTMusic backend works quite well. But only with Search and clicking on the Artist in the collected result. When selecting an album it appears empty (with no tracks).

The ytmusic backend works quite nicely with Muse but when I use Iris I find the opposite - Album works better than Artist. For Artist I initially see a list of tracks but then the whole plugin becomes inaccesible except for one track (back does not work). For Albums I see everything I saved in my Youtube Music account. The problem I have with albums is the track order in Iris is alphabetical, not usually what I want.

zxpetrel avatar May 04 '21 09:05 zxpetrel

I'd also like to see good support for YT Music, but until then I found that using the Youtube extension/backend works well with Iris, it has good support for the "Artists" page at least and playback works better than with mopidy-ytmusic :)

Chaphasilor avatar Oct 24 '21 20:10 Chaphasilor

Hello, Thank you for this lovely repository. Ive noticed that ytmusic is active in this package, but when I use "docker exec iris mopidy ytmusic setup" It wont start the auth.json activation process, but rather give me the following error:

INFO 2022-03-10 09:32:37,529 [138:MainThread] mopidy.__main__ Starting Mopidy 3.2.0 INFO 2022-03-10 09:32:37,561 [138:MainThread] mopidy.config Loading config from builtin defaults INFO 2022-03-10 09:32:37,564 [138:MainThread] mopidy.config Loading config from file:///config/mopidy.conf INFO 2022-03-10 09:32:37,564 [138:MainThread] mopidy.config Loading config from command line options INFO 2022-03-10 09:32:37,898 [138:MainThread] mopidy.__main__ Enabled extensions: http, musicbox_webclient, m3u, file, stream, softwaremixer, tunein, dleyna, podcast, spotify, iris, mpd, ytmusic, youtube INFO 2022-03-10 09:32:37,898 [138:MainThread] mopidy.__main__ Disabled extensions: tidal, local, soundcloud, jellyfin WARNING 2022-03-10 09:32:37,899 [138:MainThread] mopidy.__main__ Found local configuration errors. The extension has been automatically disabled: WARNING 2022-03-10 09:32:37,899 [138:MainThread] mopidy.__main__ local/media_dir must be set. WARNING 2022-03-10 09:32:37,899 [138:MainThread] mopidy.__main__ Please fix the extension configuration errors or disable the extensions to silence these messages. Enter the path where you want to save auth.json [default=current dir]: ERROR 2022-03-10 09:32:38,291 [138:MainThread] mopidy.__main__ EOF when reading a line Traceback (most recent call last): File "/usr/local/lib/python3.7/dist-packages/Mopidy-3.2.0-py3.7.egg/mopidy/__main__.py", line 143, in main return args.command.run(args, proxied_config) File "/usr/local/lib/python3.7/dist-packages/mopidy_ytmusic/command.py", line 23, in run "Enter the path where you want to save auth.json [default=current dir]: " EOFError: EOF when reading a line Traceback (most recent call last): File "/usr/local/bin/mopidy", line 11, in <module> load_entry_point('Mopidy', 'console_scripts', 'mopidy')() File "/usr/local/lib/python3.7/dist-packages/Mopidy-3.2.0-py3.7.egg/mopidy/__main__.py", line 143, in main return args.command.run(args, proxied_config) File "/usr/local/lib/python3.7/dist-packages/mopidy_ytmusic/command.py", line 23, in run "Enter the path where you want to save auth.json [default=current dir]: " EOFError: EOF when reading a line

I'd love to add my ytmusic library and playlists. Anything Im missing perhaps? If I can get this all working properly, so I have my spotify library, ytmusic library and mixcloud and soundcloud working, I'm a very happy man and will gladly give some money.

It's just that I get this error, can't get soundcloud, mixcloud and bandcamp to work either.

keesfluitman avatar Mar 10 '22 09:03 keesfluitman

Because this is prompting for user input, you will need to execute the command with an interactive terminal.

The short version: try docker exec -it iris mopidy ytmusic setup

jaedb avatar Mar 13 '22 07:03 jaedb

Thanks. Something I didn't know yet. Is it true though, that even though I've properly authenticated it now, it still doesn't integrate my youtube music playlists within the "playlist" sector with local and spotify? Because the only way I can find them, is by simply searching their names in the search function.

Thanks anyway. It's already a great way to play around, even if it's use is slowly dieing.

keesfluitman avatar Mar 15 '22 00:03 keesfluitman

Since Spotify is not part of the game anymore, YT-music could be nice to inspect furthermore #841

shad-lp avatar May 30 '22 05:05 shad-lp

Mopidy-YT music support has been taken as far as it can go, unless there is something specific that is not working as you see fit? I am rather limited here as there is no YT Music HTTP API for Iris to supplement the interface it with (like there is for Spotify).

jaedb avatar Sep 25 '22 07:09 jaedb