2 .\" Title: mpd_sima.cfg
3 .\" Author: Jack Kaliko <kaliko@azylum.org>
4 .\" Generator: DocBook XSL Stylesheets v1.78.1 <http://docbook.sf.net/>
6 .\" Manual: mpd-sima 0.14.0 User Manual
10 .TH "MPD_SIMA\&.CFG" "5" "09/20/2015" "mpd-sima" "mpd-sima 0.14.0 User Manual"
11 .\" -----------------------------------------------------------------
12 .\" * Define some portability stuff
13 .\" -----------------------------------------------------------------
14 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
15 .\" http://bugs.debian.org/507673
16 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
17 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
20 .\" -----------------------------------------------------------------
21 .\" * set default formatting
22 .\" -----------------------------------------------------------------
23 .\" disable hyphenation
25 .\" disable justification (adjust text to left margin only)
27 .\" -----------------------------------------------------------------
28 .\" * MAIN CONTENT STARTS HERE *
29 .\" -----------------------------------------------------------------
31 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\&.
34 This manual page documents briefly
36 configuration options available in user configuration file (see
37 the section called \(lqFILES\(rq)\&.
39 .SS "Album queue mode\&."
41 Here is an example of album queue configuration\&.
52 history_duration=48 # 2 days
60 # keep 30 played tracks in playlist
68 .SH "CONFIGURATION FILE"
70 The configuration file consists of sections, led by a
72 header and followed by
74 entries, with continuations in the style of RFC 822 (see section 3\&.1\&.1, \(lqLONG HEADER FIELDS\(rq);
76 is also accepted\&. Lines beginning with
80 are ignored and may be used to provide comments (\fINota Bene:\fR
81 inline comment are possible using
84 The default values are used in the options lists below\&.
87 This section is meant to configure MPD access, MPD host address / port and password if necessary\&.
93 \fBhost=\fR\fIlocalhost\fR
95 Set MPD host\&. Use IP or FQDN\&.
100 Set host port to access MPD to\&.
103 \fBpassword=\fR\fIs3cr3t\fR
105 Set MPD password to use\&. Do not use this option if you don\*(Aqt have enabled password protected access on your MPD server\&.
117 File to log to, usually in d\(aemon mode\&.
119 Defaut (empty or unset) is to log to stdin/stdout\&.
122 \fBverbosity=\fR\fIinfo\fR
124 Logging verbosity among
130 .SS "Process daemonization"
132 Configure process daemon\&.
140 whether to daemonize process or not\&.
145 Where to store process ID\&.
149 Core mpd_sima\&.cfg configuration\&.
159 \fBinternal=\fR\fILastfm, Random, Crop\fR
161 mpd\-sima\*(Aqs plugin management for internal source plugin and contrib (ie\&. external plugins)\&.
164 Plugins list is a comma separated string list\&.
167 Optional plugin\*(Aqs configuration lays in its own section\&.
169 For instance a "AwesomePlugin" declared here gets its configuration from the corresponding section "[awesomeplugin]"\&.
171 The default list of plugins to load at startup:
172 \fBLastfm\fR,\fBRandom\fR,\fBCrop\fR\&.
175 is an utility plugin, it does not queue any tracks (cf\&. below)\&.
178 will queue a track at random if other plugins did not return any tracks\&.
182 You can add here as many plugins you want, currently shipping
189 The priority may be used to order them\&.
192 \fBhistory_duration=\fR\fI8\fR
194 How far to look back in history to avoid to play twice the same track/title (duration in hours)\&.
198 \fBhistory_duration\fR
199 is also used to give priority to not recently played artists\&.
202 \fBqueue_length=\fR\fI2\fR
204 Threshold value triggering queue process\&.
207 \fBmusicbrainzid=\fR\fItrue\fR
209 Use MusicBrainzIdentifier to search music (mainly for artists)\&. Default is True, switch to False if you don\*(Aqt have MusicBrainzIdentifier set for at least 80% of you music library\&.
212 Consider using these metadata as it enhances a lot artist/album/tracks identification\&. Use Picard to tag your file:
213 \m[blue]\fB\%https://picard.musicbrainz.org/\fR\m[]\&.
217 crop plugin\*(Aqs configuration:
223 \fBconsume=\fR\fI10\fR
225 How many played tracks to keep in the queue\&. Allows you to maintain a fixed length queue\&. Set to some negative integer to keep all played tracks\&.
228 \fBpriority=\fR\fI10\fR
234 Random plugin\*(Aqs configuration:
240 \fBflavour=\fR\fIsensible\fR
242 When no similar tracks are found, falling back to random queuing\&. Different mode, aka random flavour, are available:
255 \fIpure\fR, pure random choice, even among recently played track\&.
266 \fIsensible\fR, use play history to filter chosen tracks\&.
277 \fIgenre\fR, Not implemented yet\&.
282 \fBpriority=\fR\fI50\fR
288 LastFM plugin\*(Aqs configuration\&.
294 \fBqueue_mode=\fR\fItrack\fR
296 Queue mode to use among
302 the section called \(lqQUEUE MODES\(rq
303 for info about queue modes)\&.
306 \fBmax_art=\fR\fI10\fR
308 Number of similar artist to retrieve from local media library\&.
310 When set to something superior to zero, it tries to get as much similar artists from media library\&.
315 How many artists to base on similar artists search\&.
318 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\&.
321 \fBsingle_album=\fR\fIfalse\fR
323 Prevent from queueing a track from the same album (it often happens with OST)\&.
326 Only relevant in "track" queue mode\&.
329 \fBtrack_to_add=\fR\fI1\fR
331 How many track(s) to add\&. Only relevant in
338 \fBalbum_to_add=\fR\fI1\fR
340 How many album(s) to add\&. Only relevant in
345 \fBcache=\fR\fITrue\fR
347 Whether or not to use on\-disk persistent http cache\&.
349 When set to "true", sima will use a persistent cache for its http client\&. The cache is written along with the dbfile in:
351 $XDG_CONFIG_HOME/mpd_sima/http/WEB_SERVICE\&.
354 If set to "false", caching is still done but in memory\&.
357 \fBpriority=\fR\fI100\fR
361 .SS "EchoNest section"
363 EchoNest plugin\*(Aqs configuration\&.
365 Options for EchoNest are exactly the same as LastFm (same default as well), except for cache plugin which is always needed to limit number of requests to the service\&.
371 \fBqueue_mode=\fR\fItrack\fR
375 \fBmax_art=\fR\fI10\fR
383 \fBsingle_album=\fR\fIfalse\fR
387 \fBtrack_to_add=\fR\fI1\fR
391 \fBalbum_to_add=\fR\fI1\fR
395 \fBpriority=\fR\fI100\fR
400 mpd\-sima offers different queue modes\&. All of them pick up tracks from artists similar to the last track in the queue\&.
402 mpd\-sima tries preferably to chose among unplayed artists or at least not recently played artist\&. Concerning track and album queue modes titles are chosen purely at random among unplayed tracks\&.
406 Queue a similar track chosen at random from a similar artist\&.
411 Queue a track from a similar artist, chosen among "top tracks" according to last\&.fm data mining\&.
416 Queue a whole album chosen at random from a similar artist\&.
421 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\&.
424 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\&.
427 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\&.
429 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\*(Aqt be queued\&.
433 ${XDG_CONFIG_HOME}/mpd_sima/mpd_sima\&.cfg
435 Configuration file\&.
438 ${XDG_DATA_HOME}/mpd_sima/sima\&.db
443 ${XDG_DATA_HOME}/mpd_sima/WEB_SERVICE/
445 Persistent http cache\&.
451 ${HOME}/\&.local/share
453 \fBXDG_CONFIG_HOME\fR
457 You may override them using command line option
465 The maintainer would be more than happy to ear from you, don\*(Aqt hesitate to send feedback,
466 \m[blue]\fB\%http://kaliko.me/id/\fR\m[]\&.
469 users are welcome to join the dedicated chat room at
470 \m[blue]\fBkaliko\&.me@conf\&.azylum\&.org\fR\m[]\&.
476 /usr/share/doc/mpd\-sima/
479 \fBJack Kaliko\fR <\&kaliko@azylum\&.org\&>
481 Wrote this man page and is currently leading MPD_sima project\&.
485 Copyright \(co 2009-2015 Jack Kaliko
488 This manual page was written for the Debian system (and may be used by others)\&.
490 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\&.
492 On Debian systems, the complete text of the GNU General Public License can be found in
493 /usr/share/common\-licenses/GPL\&.