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