Currently running a MPD source to Icecast2 on my Raspberry Pi 3, using HTTPS.
Everything is working smoothly, however upon retrieving metadata from Icecast using the status-json.xsl file (and opening it directly), all I can find as relevant metadata is the artist and title of the song.
I would also like to be able to retrieve the album for the current song; upon browsing the MPD documentation, I uncommented metadata_to_use in /etc/mpd.conf and tailored it to my needs :
metadata_to_use "artist,album,title,name"
This being done, I restarted Icecast2 and MPD, but on the status-json.xsl file, no additional tags are available.
I thought tags, when required, would appear as additional information on the status-json.xsl file, but I was apparently wrong.
I did not find any relevant property in the part of Icecast2 as far as metadata go.
Could someone please clarify where I am supposed to find the additional tags I need?
Or, if I misconfigured anything, what I am supposed to look for?
Thanks a lot!
OK so, long story short, no could do.
Upon reading on the Interweb, I discovered that mpd comes with its own httpd server, and indeed, after making it work, there was simply no need for Icecast2 anymore.
For those interested into how to manage that, here goes :
mpd.conf :
"gapless "yes"to the decoder{} block :audio_output{}used to mount to Icecast2 (the Shout one)audio_output{}type "httpd",encoder "vorbis"as Lame did not work for me as far as metadata go,always_on "yes"tags "yes"Now, for the metadata parsing : it's a function graciously given here used to break down the data.
Please note it does not autorefresh yet, but it works.
Admittedly, it is a first draft and despite it not working like perfectly, it does work for me, so I hope it helps others!