mpc
mpc copied to clipboard
[Feature Request] Add by URL with tags
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 :-)
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.