Searching tracks by sticker value

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
PierreRust
Posts: 1
Joined: November 19th, 2014, 10:08 am

Searching tracks by sticker value

Post by PierreRust » November 23rd, 2014, 5:23 pm

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 !

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

Re: Searching tracks by sticker value

Post by max » November 24th, 2014, 6:32 am

No such option exist, though it would be possible to add a "value" argument to "sticker find". Patch welcome.

Rasi
Forum team
Posts: 141
Joined: January 16th, 2013, 7:29 pm

Re: Searching tracks by sticker value

Post by Rasi » November 28th, 2014, 8:12 pm

If someone implements this, please add the possibility to search for things like "equals or greater as"

Post Reply