Page 1 of 1

Searching tracks by sticker value

Posted: November 23rd, 2014, 5:23 pm
by PierreRust
Hi,

I've been studying the mpd protocol lately, and I did not find any command to search a list of tracks that have a sticker with a given value. For example if I use stickers to store rating, I don't see any way of getting the list of songs with rating 3.

Of course, I can use "sticker find" and filter the result in my client's code, but as most of my tracks have rating, this is not efficient as the command returns all the tracks with a rating sticker.

Am I missing something ? Is there any reason for not having this command in the protocol ? Maybe it's a lack of developer time or interest, in which case I might be able to help.

Thanks !

Re: Searching tracks by sticker value

Posted: November 24th, 2014, 6:32 am
by max
No such option exist, though it would be possible to add a "value" argument to "sticker find". Patch welcome.

Re: Searching tracks by sticker value

Posted: November 28th, 2014, 8:12 pm
by Rasi
If someone implements this, please add the possibility to search for things like "equals or greater as"