Naming playlist entries

General Discussion about MPD – anything that doesn't fit in the other MPD forums.
Post Reply
milanraf
Posts: 2
Joined: May 9th, 2020, 5:09 pm

Naming playlist entries

Post 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
max
Forum team
Posts: 1139
Joined: January 15th, 2013, 3:43 pm

Re: Naming playlist entries

Post 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
milanraf
Posts: 2
Joined: May 9th, 2020, 5:09 pm

Re: Naming playlist entries

Post by milanraf »

Thank you Max.

Unfortunately my mpd is still 0.17 and this command is not yet supported...update time has come...
max
Forum team
Posts: 1139
Joined: January 15th, 2013, 3:43 pm

Re: Naming playlist entries

Post by max »

0.17, that is an 8 year old version, huh!
geneticdrift
Posts: 3
Joined: September 9th, 2013, 8:49 am

Re: Naming playlist entries

Post 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

Post Reply