MusicPlayerDaemon / mpc

Command-line client for MPD
GNU General Public License v2.0
191 stars 36 forks source link

[Feature Request] Add by URL with tags #84

Open matzebond opened 2 years ago

matzebond commented 2 years ago

I am currently working on integrating YouTube with mpd and landed on something like: mpc add $(youtube-dl -g --format bestaudio https://www.youtube.com/watch\?v\=1h4dI2pW8vg) The audio url get added and plays but there is no meta information and it looks ugly in clients. I would like to provide meta information either in the add command or in a separate command.

The protocol has addtagid {SONGID} {TAG} {VALUE} and addid {URL} [POSITION] if mpc provided these scripting would become much easier :-)

drtorchwood commented 1 year ago

I'm facing the same problem. With the --get-title option of youtube-dl or yt-dlp I get the title, too. But I cannot forward it to mpd. Here (https://forums.debian.net/viewtopic.php?p=694304&sid=f3d4416ed8299e739f74c149a4ada039#p694304), the information is added after # to the url but this does not seem to work. The stream starts but no tag is available in mpd.