MPD_SIMA.CFG(5) | mpd-sima 0.16.1 User Manual | MPD_SIMA.CFG(5) |
mpd_sima.cfg - mpd-sima will try to maintain some titles ahead in the queue following different policies. This manual document the configuration file for mpd-sima.
This manual page documents briefly mpd-sima configuration options available in user configuration file (see the section called “FILES”).
Here is an example of autoqueue using file tags only.
[MPD] host=example.org port=6601 [sima] # Setup internal plugins internal = Tags, Crop history_duration=48 # 2 days queue_length=2 [tags] # Look for files with tagged with genre "electonica" OR "IDM" OR "glitch" genre = electonica, IDM, glitch [crop] # keep 30 played tracks in playlist consume=30
Here is an example of album queue configuration using online recommendations system.
[MPD] host=example.org port=8000 [sima] history_duration=48 # 2 days queue_length=5 [lastfm] queue_mode=album album_to_add=2 [crop] # keep 30 played tracks in playlist consume=30
The configuration file consists of sections, led by a [section] header and followed by name: value entries, with continuations in the style of RFC 822 (see section 3.1.1, “LONG HEADER FIELDS”); name=value is also accepted. Lines beginning with '#' or ';' are ignored and may be used to provide comments (Nota Bene: inline comment are possible using '#').
The default values are used in the options lists below.
This section is meant to configure MPD access, MPD host address / port and password if necessary.
[MPD]
host=localhost
port=6600
password=s3cr3t
Configure logging.
[log]
logfile=
verbosity=info
Configure process daemon.
[daemon]
daemon=false
pidfile=
Core mpd_sima.cfg configuration.
[sima]
contrib=
internal=Lastfm, Random, Crop
Plugins list is a comma separated string list.
Optional plugin's configuration lays in its own section.
For instance a "AwesomePlugin" declared here gets its configuration
from the corresponding section "[awesomeplugin]".
The default list of plugins to load at startup: Lastfm,Random,Crop.
Crop is an utility plugin, it does not queue any tracks (cf. below).
Random will queue a track at random if other plugins did not return any tracks.
You can add, combine here as many plugins you want.
The priority may be used to order them.
history_duration=8
The history_duration is also used to give priority to not recently played artists.
queue_length=2
musicbrainzid=true
Consider using these metadata as it enhances a lot artist/album/tracks identification. Use Picard to tag your file: https://picard.musicbrainz.org/.
repeat_disable_queue=true
single_disable_queue=true
crop plugin's configuration:
[crop]
consume=10
priority=10
Random plugin's configuration:
[random]
track_to_add=1
flavour=sensible
priority=50
LastFM plugin's configuration.
[lastfm]
queue_mode=track
max_art=10
depth=1
The first is the last played artist and so on back in the history. Highter depth generates wider suggestions, it might help to reduce looping over same artists.
single_album=false
Only relevant in "track" queue mode.
track_to_add=1
album_to_add=1
track_to_add_from_album=0
cache=True
$XDG_CONFIG_HOME/mpd_sima/http/WEB_SERVICE.
If set to "false", caching is still done but in memory.
priority=100
Tags plugin's configuration. There is no default configuration for this plugin, it does not work out of the box.
This plugin permits offline autoqueuing based on files tags only. Supported tags are 'comment', 'date', 'genre', 'label' and 'originaldate'. It currently supports single track queuing only, no album mode for this plugin.
In addition to supported tags above you can use an MPD filter. Please refer to MPD protocol documentation for more.
All entries in this section are ANDed as a single MPD filter to look for titles in the library. Moreover, with tags, comma separated values are also ORed.
For instance setting "genre=rock" and "date=1982,1983,1984,1985,1986,1987,1988,1989" will end up looking for track tagged with genre rock and date within 1985 through 1990.
Using an MPD filter to replace date you can achieve the same with the following setting: "genre=rock" and "filter=(date =~ '198[2-9]+')" (provided your MPD server was compiled with libpcre).
[tags]
queue_mode=track
filter=
comment=
date=
genre=
label=
priority=80
track_to_add=1
album_to_add=1
Different queue modes are available with some plugins (check for queue_mode presence in plugin config).
mpd-sima tries preferably to chose among unplayed artists or at least not recently played artist.
track
top
album
Nota Bene:
Due to the track point of view of database build upon tracks tags an album lookup for a specific artist will return albums as soon as this artist appears in a single track of the album.
For instance looking for album from "The Velvet Underground" will fetch "Last Days" and "Juno" OSTs because the band appears on the soundtrack of these two movies.
A solution is for you to set AlbumArtists tag to something different than the actual artist of the track. For compilations, OSTs etc. a strong convention is to use "Various Artists" for this tag.
mpd-sima is currently looking for AlbumArtists tags and avoid album where this tag is set with "Various Artists". If a single track within an album is found with AlbumArtists:"Various Artists" the complete album is skipped and won't be queued.
${XDG_CONFIG_HOME}/mpd_sima/mpd_sima.cfg
${XDG_DATA_HOME}/mpd_sima/sima.db
${XDG_DATA_HOME}/mpd_sima/WEB_SERVICE/
Usually XDG_DATA_HOME is set to ${HOME}/.local/share and
XDG_CONFIG_HOME to ${HOME}/.config.
You may override them using command line option --var-dir and
--config (cf. mpd-sima(1))
The maintainer would be more than happy to ear from you, don't hesitate to send feedback, https://kaliko.me/contact/.
XMPP users are welcome to join the dedicated chat room at kaliko.me@conf.azylum.org.
/usr/share/doc/mpd-sima/
kaliko <kaliko@azylum.org>
Copyright © 2009-2021 kaliko
This manual page was written for the Debian system (and may be used by others).
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 3 published by the Free Software Foundation.
On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL.
01/09/2021 | mpd-sima |