search/find syntax on protocol level?

Need help with MPD?
Post Reply
Atair
Posts: 2
Joined: August 26th, 2020, 10:37 am

search/find syntax on protocol level?

Post by Atair »

Hi everybody.
I desperately try to write a search command with sort option, but always get "Unparsed garbage after expression".

For example:

Code: Select all

search "((genre contains \\"Jazz\\") AND (artist contains \\"Metheny\\")) sort \\"AlbumArtistSort\\""
The first part without the sort option works well, but I do not know how to add the sort option.

Could somebody help me to get it right?
max
Forum team
Posts: 1139
Joined: January 15th, 2013, 3:43 pm

Re: search/find syntax on protocol level?

Post by max »

The "sort" option is a "search" parameter, and not part of the filter expression. Try:

Code: Select all

search "((genre contains \"Jazz\") AND (artist contains \"Metheny\"))" sort "AlbumArtistSort"
Atair
Posts: 2
Joined: August 26th, 2020, 10:37 am

Re: search/find syntax on protocol level?

Post by Atair »

Great, thanks a lot. That works. :D
Post Reply