From: kaliko Date: Tue, 16 Nov 2021 13:38:55 +0000 (+0100) Subject: doc: Fixed filter X-Git-Tag: 0.18.1~14 X-Git-Url: https://git.kaliko.me/?a=commitdiff_plain;h=ee72bcb36793822f1bd01eba010a28daced75cc3;p=mpd-sima.git doc: Fixed filter Even it is a valid MPD filter, drop external enclosing parentheses --- diff --git a/doc/source/user/01_configurations.rst b/doc/source/user/01_configurations.rst index 8eca8a8..235abb9 100644 --- a/doc/source/user/01_configurations.rst +++ b/doc/source/user/01_configurations.rst @@ -145,8 +145,8 @@ current filter "`(date =~ '198[2-9]+')`": genre = rock filter = (date =~ '198[2-9]+') -And even go further and merge genre in the filter using "`((genre == 'rock') AND -(date =~ '198[2-9]+'))`". +And even go further and merge genre in the filter using "`(genre == 'rock') AND +(date =~ '198[2-9]+')`". .. code:: ini @@ -154,8 +154,7 @@ And even go further and merge genre in the filter using "`((genre == 'rock') AND internal = Crop, Tags [tags] - filter = (genre == 'rock' ) AND (date =~ '198[2-9]+')) - + filter = (genre == 'rock' ) AND (date =~ '198[2-9]+') Since the setup for the filter can be tricky and it can be useful to validate the syntax and have a look at what kind of artists the filter would return.