jaedb / Iris

Discover, explore and manage your music library across multiple sources with this beautiful web-based interface. Iris is a Mopidy frontend extension.
Apache License 2.0
1.13k stars 131 forks source link

Support for mopidy-ytmusic? #716

Open DIYglenn opened 3 years ago

DIYglenn commented 3 years ago

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

rebernet commented 3 years ago

I would also be very interested in this feature.

jaedb commented 3 years ago

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.

kingosticks commented 3 years ago

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

DIYglenn commented 3 years ago

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

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

kingosticks commented 3 years ago

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.

jaedb commented 3 years ago

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).

rebernet commented 3 years ago

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).

zxpetrel commented 3 years ago

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.

Chaphasilor commented 2 years ago

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 :)

keesfluitman commented 2 years ago

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.

jaedb commented 2 years ago

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

keesfluitman commented 2 years ago

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.

shad-lp commented 2 years ago

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

jaedb commented 1 year ago

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).