From ee72bcb36793822f1bd01eba010a28daced75cc3 Mon Sep 17 00:00:00 2001 From: kaliko Date: Tue, 16 Nov 2021 14:38:55 +0100 Subject: [PATCH] doc: Fixed filter Even it is a valid MPD filter, drop external enclosing parentheses --- doc/source/user/01_configurations.rst | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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. -- 2.39.5