Satellite client count failure

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
Voxxpop
Posts: 5
Joined: May 14th, 2018, 2:47 pm

Satellite client count failure

Post by Voxxpop » February 14th, 2019, 9:16 pm

Hi

There seems to be a problem with the count command issued to a satellite instance of MPD when using certain regex options.

Via telnet to the Master:

Code: Select all

count "(artist == 'The The')"
songs: 126
playtime: 35416
OK
To the Satellite:

Code: Select all

count "(artist == 'The The')"
songs: 126
playtime: 35417
OK
These work as expected (apart from the 1s playtime difference). As does the following:

Master:

Code: Select all

count "(artist =~ 'The The')"
songs: 126
playtime: 35416
OK
Satellite:

Code: Select all

count "(artist =~ 'The The')"
songs: 126
playtime: 35417
OK
However, this does not work as expected:

Master:

Code: Select all

count "(artist =~ '(?i)The The')"
songs: 126
playtime: 35416
OK
Satellite:

Code: Select all

count "(artist =~ '(?i)The The')"
songs: 0
playtime: 0
OK
The (?i) seems to be causing a problem somewhere along the line. Note that it also fails when doing a count programatically using the libmpdclient library 'mpd_count_db_songs(...)' function.

MPD v0.21.4, libmpdclient2 v2.16

Cheers!

v

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

Re: Satellite client count failure

Post by max » February 15th, 2019, 11:41 am

Can you write a bug report on GitHub? Are you using the same MPD version on both machines?

Voxxpop
Posts: 5
Joined: May 14th, 2018, 2:47 pm

Re: Satellite client count failure

Post by Voxxpop » February 15th, 2019, 7:51 pm

Hi

I've created a new issue on GitHub for this.

v

Post Reply