From: kaliko Date: Tue, 16 Nov 2021 14:24:52 +0000 (+0100) Subject: More robust Tags plugin MPD filter configuration X-Git-Tag: 0.18.0~4 X-Git-Url: https://git.kaliko.me/?a=commitdiff_plain;h=2b3bf3f5cef4ed9ff9e418b27194d89ca7e66b67;hp=2b3bf3f5cef4ed9ff9e418b27194d89ca7e66b67;p=mpd-sima.git More robust Tags plugin MPD filter configuration Remove external enclosing parentheses in user defined MPD filter, for instance when there is more than one expression: ((genre == 'rock' ) AND (date =~ '198.')). Even though it's a valid MPD filter, forge_filter will enclose it properly. We do not want to through a syntax error at users since it's a valid MPD filter, hence trying to transparently reformat the filter. filter = ((genre == 'rock' ) AND (date =~ '198.')) and filter = (genre == 'rock' ) AND (date =~ '198.') Will work the same, producing the valid MPD filter: ((genre == 'Punk') AND (date =~ '198[2-9]+') AND (artist != '')) ---