Include playlists in search

Need help with MPD?
Post Reply
JoergZ
Posts: 11
Joined: August 11th, 2015, 6:56 pm

Include playlists in search

Post by JoergZ »

Is there a way to include the contents of the current playlist (or all playlist files) into the search? How can I include internet radio station links into the search resp. into database?
max
Forum team
Posts: 1139
Joined: January 15th, 2013, 3:43 pm

Re: Include playlists in search

Post by max »

Yes, there are commands to search the queue: "playlistfind" and "playlistsearch". See https://www.musicpd.org/doc/html/protoc ... #the-queue
JoergZ
Posts: 11
Joined: August 11th, 2015, 6:56 pm

Re: Include playlists in search

Post by JoergZ »

I've seen that but I don't understand the syntax. Give me an example, please. How can I find the second entry from my (actual) playlist Radiostationen.m3u:

Code: Select all

#EXTM3U
#EXTINF:-1,Deutschlandfunk
http://st01.dlf.de/dlf/01/128/mp3/stream.mp3
#EXTINF:-1,Deutschlandradio Kultur
http://st02.dlf.de/dlf/02/128/mp3/stream.mp3
#EXTINF:-1,Deutschlandfunk NOVA
http://st03.dlf.de/dlf/03/128/mp3/stream.mp3
max
Forum team
Posts: 1139
Joined: January 15th, 2013, 3:43 pm

Re: Include playlists in search

Post by max »

You can't. Those commands are only for the queue, not for arbitrary playlist files. You can't search playlist files right now.

MPD 0.22~git has some code to integrate CUE sheets into the database, but not other playlist files. But that code may be a good start to implement such a feature.
Post Reply