Page 1 of 1

Naming playlist entries

Posted: May 9th, 2020, 5:29 pm
by milanraf
Hello to the Forum,

I have created a playlist with many web radio streams addresses.
Since they are growing more and more, it is now difficult to remember which radio each entry is linking to.
For example:
http://streams.radio.co/s63f12ebcb/listen
http://a11.streamgb.com:9108/stream
these addresses do not have any indication of the actual radio the play.

Is there a way to add a name or a label to playlist entries?
For example, something like: [RADIOSOUND]http://some.domain.com/stream

Thank you

Raf

Re: Naming playlist entries

Posted: May 10th, 2020, 8:23 am
by max
The MPD protocol has a commandd "addtagid" which can be used to annotate queue items with custom tags: https://www.musicpd.org/doc/html/protoc ... #the-queue

Re: Naming playlist entries

Posted: May 10th, 2020, 1:43 pm
by milanraf
Thank you Max.

Unfortunately my mpd is still 0.17 and this command is not yet supported...update time has come...

Re: Naming playlist entries

Posted: May 11th, 2020, 10:08 am
by max
0.17, that is an 8 year old version, huh!

Re: Naming playlist entries

Posted: June 12th, 2020, 6:41 pm
by geneticdrift
In pls file format you can put a title for each URL and MPD will use it in the `playlistinfo` response.

Example file saved as [music_directory]/Radio/BBC.pls:

Code: Select all

[playlist]

File1=http://bbcwssc.ic.llnwd.net/stream/bbcwssc_mp1_ws-eieuk
Title1=BBC World News
Length1=-1

File2=http://bbcmedia.ic.llnwd.net/stream/bbcmedia_radio4extra_mf_p
Title2=BBC Radio 4 Extra
Length2=-1

File3=http://bbcmedia.ic.llnwd.net/stream/bbcmedia_radio4fm_mf_p
Title3=BBC Radio 4
Length3=-1

File4=http://bbcmedia.ic.llnwd.net/stream/bbcmedia_radio2_mf_p
Title4=BBC Radio 2
Length4=-1

File5=http://bbcmedia.ic.llnwd.net/stream/bbcmedia_radio3_mf_p
Title5=BBC Radio 3
Length5=-1

NumberOfEntries=5
Version=2 

Code: Select all

OK MPD 0.22.0
load Radio/BBC.pls
OK
playlistinfo 0:5
file: http://bbcwssc.ic.llnwd.net/stream/bbcwssc_mp1_ws-eieuk
Title: BBC World News
Pos: 0
Id: 111
file: http://bbcmedia.ic.llnwd.net/stream/bbcmedia_radio4extra_mf_p
Title: BBC Radio 4 Extra
Pos: 1
Id: 112
file: http://bbcmedia.ic.llnwd.net/stream/bbcmedia_radio4fm_mf_p
Title: BBC Radio 4
Pos: 2
Id: 113
file: http://bbcmedia.ic.llnwd.net/stream/bbcmedia_radio2_mf_p
Title: BBC Radio 2
Pos: 3
Id: 114
file: http://bbcmedia.ic.llnwd.net/stream/bbcmedia_radio3_mf_p
Title: BBC Radio 3
Pos: 4
Id: 115
OK