OzymandiasTheGreat / mopidy-ytmusic

Mopidy extension for playling music/managing playlists in Youtube Music
Apache License 2.0
79 stars 28 forks source link

loading playlist .m3u8 with mpc does not work #24

Closed chicco64 closed 3 years ago

chicco64 commented 3 years ago

Hi ! I would like to load my playlist through the "mpc load playlist" command. Mopidy cannot play the "saved" playlist in m3u8 format; it is possible to play the playlist only through the "musicbox" graphic interface by manually selecting the playlist that appears on the network, and not the one saved in m3u8 format. Is it possible to start the playlist "on the net" through the command line? Perhaps using the "public" link that distinguishes that specific playlist (eg. https://music.youtube.com/playlist?list=xxx_xxx_xxx) Thanks for your help

impliedchaos commented 3 years ago

Yeah, you can just change the URL from "https://music.youtube.com/playlist?list=XXXXX" to "ytmusic:playlist:XXXXX". Then you can add that url via a web frontend or from mpc as "mpc add ytmusic:playlist:XXXXX"

chicco64 commented 3 years ago

Great, the "mpc add ytmusic: playlist: XXXXX" method works perfectly ! Would you be so kind to explain the other method, "via a web frontend", perhaps with a concrete example? eg. my current address is: http://xx.xx.xx.xx:6680/musicbox_webclient/index.html#nowPlaying Many thanks !

impliedchaos commented 3 years ago

It's the same, you're just manually entering it into musicbox. Navigate to "Queue" and click on the "+" button on the top right. Then just type the URI you created into the dialog.

image

chicco64 commented 3 years ago

perfect, many thanks!

bendschs commented 2 years ago

for some reason this only works for me if tracks/playlists are already cached, or at least were searched for before through the webfrontend. otherwise mpc fails with "directory or file not found". iris is able to recognise tracks i searched for before, in the way that the tracks title and artist appear instead of "ytmusic:track:xxxx" in the addlist (i am using iris) but is not able to actually add the track to the playlist either.

did that actually ever work and is it maybe just not working because the yt-api changed? "spotify", "youtube" (non-music) and "local" extensions are all able to handle urls via mpc.