+.. _configuration-examples:
+
Configuration examples
======================
This is the most complex and versatile offline mode. "Tags" plugin allows to queue track based on actual tags value.
-Here is an example to have MPD_sima to queue only electronic music tagged with genres **electonica** or **IDM** or **glitch**:
+Here is an example to have MPD_sima to queue only electronic music tagged with genres **electronica** or **IDM** or **glitch**:
.. code:: ini
internal = Crop, Tags
[tags]
- # Look for files with tagged with genre "electonica" OR "IDM" OR "glitch"
- genre = electonica, IDM, glitch
+ # Look for files with tagged with genre "electronica" OR "IDM" OR "glitch"
+ genre = electronica, IDM, glitch
There are other supported tags, mainly **date**, **originaldate** or
**comment** (cf manual for the exact list). You can use more than one, entries
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
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.