"playlistfind" with multiple tag-value pairs

Discuss client development (or even MPD development if you feel so inclined), ask questions about the client libs, MPD feature requests from client developers, etc...
Post Reply
Posts: 1
Joined: October 14th, 2016, 11:05 am

"playlistfind" with multiple tag-value pairs

Post by jcdenton »


when comparing the different commands from https://musicpd.org/doc/protocol/queue.html and https://musicpd.org/doc/protocol/database.html I was a bit surprised that "playlistfind" allows only to specify a single (tag, value) pair, while "find" allows to specify a number of different (tag, value) pairs, which seems rather inconsistent. So I tried to use "playlistfind" with multiple (tag, value) pairs, which works as expected, although it's not documented in the protocol specification. Furthermore, tags such as modified-since can be used, although only tags are allowed according to the protocol specification.

My question is, is the protocol specification not up to date, or is it just some feature that may disappear in upcoming versions? To put it in another way, when implementing an MPD library, is it okay to allow the user to specify multiple (tag, value) pairs for commands like playlistfind, although it's not officially documented?

Thanks in advance.

Forum team
Posts: 1108
Joined: January 15th, 2013, 3:43 pm

Re: "playlistfind" with multiple tag-value pairs

Post by max »

When the protocol documentation was written, there were separate implementations for all of these commands, and new features had to be implemented in all of them. A few years ago, I merged all of the duplicate code, and made all commands the same. So, true, the protocol documentation is outdated.

Post Reply