Page 1 of 1

"playlistfind" with multiple tag-value pairs

Posted: October 14th, 2016, 11:30 am
by jcdenton

when comparing the different commands from and 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.

Re: "playlistfind" with multiple tag-value pairs

Posted: October 15th, 2016, 9:23 am
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.