]> kaliko git repositories - mpd-sima.git/blob - data/man/mpd_sima.cfg.5
Releasing 0.13.1
[mpd-sima.git] / data / man / mpd_sima.cfg.5
1 '\" t
2 .\"     Title: mpd_sima.cfg
3 .\"    Author: Jack Kaliko <kaliko@azylum.org>
4 .\" Generator: DocBook XSL Stylesheets v1.78.1 <http://docbook.sf.net/>
5 .\"      Date: 01/29/2015
6 .\"    Manual: mpd-sima 0.13.1 User Manual
7 .\"    Source: mpd-sima
8 .\"  Language: English
9 .\"
10 .TH "MPD_SIMA\&.CFG" "5" "01/29/2015" "mpd-sima" "mpd-sima 0.13.1 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 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18 .ie \n(.g .ds Aq \(aq
19 .el       .ds Aq '
20 .\" -----------------------------------------------------------------
21 .\" * set default formatting
22 .\" -----------------------------------------------------------------
23 .\" disable hyphenation
24 .nh
25 .\" disable justification (adjust text to left margin only)
26 .ad l
27 .\" -----------------------------------------------------------------
28 .\" * MAIN CONTENT STARTS HERE *
29 .\" -----------------------------------------------------------------
30 .SH "NAME"
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\&.
32 .SH "DESCRIPTION"
33 .PP
34 This manual page documents briefly
35 \fBmpd\-sima\fR
36 configuration options available in user configuration file (see
37 the section called \(lqFILES\(rq)\&.
38 .SH "EXAMPLES"
39 .SS "Album queue mode\&."
40 .PP
41 Here is an example of album queue configuration\&.
42 .sp
43 .if n \{\
44 .RS 4
45 .\}
46 .nf
47 [MPD]
48 host=example\&.org
49 port=8000
50
51 [sima]
52 history_duration=48  # 2 days
53 queue_length=5
54
55 [lastfm]
56 queue_mode=album
57 album_to_add=2
58
59 [crop]
60 # keep 30 played tracks in playlist
61 consume=30
62
63             
64 .fi
65 .if n \{\
66 .RE
67 .\}
68 .SH "CONFIGURATION FILE"
69 .PP
70 The configuration file consists of sections, led by a
71 \fB[section]\fR
72 header and followed by
73 \fBname:\ \&value\fR
74 entries, with continuations in the style of RFC 822 (see section 3\&.1\&.1, \(lqLONG HEADER FIELDS\(rq);
75 \fBname=value\fR
76 is also accepted\&. Lines beginning with
77 \fI\*(Aq#\*(Aq\fR
78 or
79 \fI\*(Aq;\*(Aq\fR
80 are ignored and may be used to provide comments (\fINota Bene:\fR
81 inline comment are possible using
82 \fI\*(Aq#\*(Aq\fR)\&.
83 .PP
84 The default values are used in the options lists below\&.
85 .SS "MPD section"
86 .PP
87 This section is meant to configure MPD access, MPD host address / port and password if necessary\&.
88 .PP
89 \fB[MPD]\fR
90 .RS 4
91 .RE
92 .PP
93 \fBhost=\fR\fIlocalhost\fR
94 .RS 4
95 Set MPD host\&. Use IP or FQDN\&.
96 .RE
97 .PP
98 \fBport=\fR\fI6600\fR
99 .RS 4
100 Set host port to access MPD to\&.
101 .RE
102 .PP
103 \fBpassword=\fR\fIs3cr3t\fR
104 .RS 4
105 Set MPD password to use\&. Do not use this option if you don\*(Aqt have enabled password protected access on your MPD server\&.
106 .RE
107 .SS "log section"
108 .PP
109 Configure logging\&.
110 .PP
111 \fB[log]\fR
112 .RS 4
113 .RE
114 .PP
115 \fBlogfile=\fR
116 .RS 4
117 File to log to, usually in d\(aemon mode\&.
118 .br
119 Defaut (empty or unset) is to log to stdin/stdout\&.
120 .RE
121 .PP
122 \fBverbosity=\fR\fIinfo\fR
123 .RS 4
124 Logging verbosity among
125 \fIdebug\fR,
126 \fIinfo\fR,
127 \fIwarning\fR,
128 \fIerror\fR\&.
129 .RE
130 .SS "Process daemonization"
131 .PP
132 Configure process daemon\&.
133 .PP
134 \fB[daemon]\fR
135 .RS 4
136 .RE
137 .PP
138 \fBdaemon=false\fR
139 .RS 4
140 whether to daemonize process or not\&.
141 .RE
142 .PP
143 \fBpidfile=\fR
144 .RS 4
145 Where to store process ID\&.
146 .RE
147 .SS "sima section"
148 .PP
149 Core mpd_sima\&.cfg configuration\&.
150 .PP
151 \fB[sima]\fR
152 .RS 4
153 .RE
154 .PP
155 \fBhistory_duration=\fR\fI8\fR
156 .RS 4
157 How far to look back in history to avoid to play twice the same track/title (duration in hours)\&.
158 .RE
159 .PP
160 \fBqueue_length=\fR\fI1\fR
161 .RS 4
162 This value triggers queue process if the queue length is less than specified queue_length\&.
163 .RE
164 .PP
165 \fBmusicbrainzid=\fR\fItrue\fR
166 .RS 4
167 Use MusicBrainzIdentifier to search music (mainly for artists)\&. Consider using these metadata as it enhances a lot artist/album/tracks identification\&.
168 .br
169
170 Default is True, switch to False if you don\*(Aqt have MusicBrainzIdentifier set for at least 80% of you music library\&.
171 .br
172
173 Use Picard to tag your file:
174 \m[blue]\fB\%https://picard.musicbrainz.org/\fR\m[]\&.
175 .RE
176 .PP
177 \fBuser_db=\fR\fIfalse\fR
178 .RS 4
179 Temporarily removed feature
180 .RE
181 .PP
182 mpd\-sima\*(Aqs plugin management for internal source plugin and contrib (ie\&. external plugins)\&.
183 .br
184
185 Plugins list is a comma separated string list\&.
186 .br
187
188 Optional plugin\*(Aqs configuration lays in its own section\&.
189 .br
190 For instance a "AwesomePlugin" declared here gets its configuration from the corresponding section "[awesomeplugin]"\&.
191 .br
192 internal plugins will look for a section named after the lower\-cased name of the pluglin, ie\&. RandomFallBack\ \&\(-> randomfallback\&.
193 .PP
194 \fBinternal=\fR\fICrop, RandomFallBack, Lastfm\fR
195 .RS 4
196 \fBCrop\fR
197 and
198 \fBRandomFallback\fR
199 are utilities plugins while
200 \fBLastfm\fR
201 is the actual queue plugin\&.
202 .br
203
204 Another queue plugin is available as a "techno preview", it relies on EchoNest web services, replace
205 \fBLastFm\fR
206 with
207 \fBEchoNest\fR
208 to try\&.
209 .RE
210 .PP
211 \fBcontrib=\fR
212 .RS 4
213 .RE
214 .SS "Crop section"
215 .PP
216 crop plugin\*(Aqs configuration:
217 .PP
218 \fB[crop]\fR
219 .RS 4
220 .RE
221 .PP
222 \fBconsume=\fR\fI0\fR
223 .RS 4
224 How many played tracks to keep in the queue\&. Allows you to maintain a fixed length queue\&. Set to 0 to keep all played tracks\&.
225 .RE
226 .SS "RandomFallback section"
227 .PP
228 RandomFallback plugin\*(Aqs configuration:
229 .PP
230 \fB[randomfallback]\fR
231 .RS 4
232 .RE
233 .PP
234 \fBflavour=\fR\fIsensible\fR
235 .RS 4
236 When no similar tracks are found, falling back to random queuing\&. Different mode, aka random flavour, are available:
237 \fIpure\fR,
238 \fIsensible\fR,
239 \fIgenre\fR\&.
240 .sp
241 .RS 4
242 .ie n \{\
243 \h'-04'\(bu\h'+03'\c
244 .\}
245 .el \{\
246 .sp -1
247 .IP \(bu 2.3
248 .\}
249 \fIpure\fR, pure random choice, even among recently played track\&.
250 .RE
251 .sp
252 .RS 4
253 .ie n \{\
254 \h'-04'\(bu\h'+03'\c
255 .\}
256 .el \{\
257 .sp -1
258 .IP \(bu 2.3
259 .\}
260 \fIsensible\fR, use play history to filter chosen tracks\&.
261 .RE
262 .sp
263 .RS 4
264 .ie n \{\
265 \h'-04'\(bu\h'+03'\c
266 .\}
267 .el \{\
268 .sp -1
269 .IP \(bu 2.3
270 .\}
271 \fIgenre\fR, Not implemented yet\&.
272 .RE
273 .sp
274 .RE
275 .SS "LastFm section"
276 .PP
277 LastFM plugin\*(Aqs configuration\&.
278 .PP
279 \fB[lastfm]\fR
280 .RS 4
281 .RE
282 .PP
283 \fBqueue_mode=\fR\fItrack\fR
284 .RS 4
285 Queue mode to use among
286 \fItrack\fR,
287 \fItop\fR
288 and
289 \fIalbum\fR
290 (see
291 the section called \(lqQUEUE MODES\(rq
292 for info about queue modes)\&.
293 .RE
294 .PP
295 \fBmax_art=\fR\fI10\fR
296 .RS 4
297 Number of similar artist to retrieve from local media library\&.
298 .br
299 When set to something superior to zero, it tries to get as much similar artists from media library\&.
300 .RE
301 .PP
302 \fBdepth=\fR\fI1\fR
303 .RS 4
304 How many artists to base on similar artists search\&.
305 .br
306
307 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\&.
308 .RE
309 .PP
310 \fBsingle_album=\fR\fIfalse\fR
311 .RS 4
312 Prevent from queueing a track from the same album (it often happens with OST)\&.
313 .br
314
315 Only relevant in "track" queue mode\&.
316 .RE
317 .PP
318 \fBtrack_to_add=\fR\fI1\fR
319 .RS 4
320 How many track(s) to add\&. Only relevant in
321 \fBtop\fR
322 and
323 \fBtrack\fR
324 queue modes\&.
325 .RE
326 .PP
327 \fBalbum_to_add=\fR\fI1\fR
328 .RS 4
329 How many album(s) to add\&. Only relevant in
330 \fBalbum\fR
331 queue modes\&.
332 .RE
333 .PP
334 \fBcache=\fR\fITrue\fR
335 .RS 4
336 Whether or not to use on\-disk persistent http cache\&.
337 .br
338 When set to "true", sima will use a persistent cache for its http client\&. The cache is written along with the dbfile in:
339 .br
340 $XDG_CONFIG_HOME/mpd_sima/http/WEB_SERVICE\&.
341 .br
342
343 If set to "false", caching is still done but in memory\&.
344 .RE
345 .SH "QUEUE MODES"
346 .PP
347 mpd\-sima offers different queue modes\&. All of them pick up tracks from artists similar to the last track in the queue\&.
348 .PP
349 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\&.
350 .PP
351 \fBtrack\fR
352 .RS 4
353 Queue a similar track chosen at random from a similar artist\&.
354 .RE
355 .PP
356 \fBtop\fR
357 .RS 4
358 Queue a track from a similar artist, chosen among "top tracks" according to last\&.fm data mining\&.
359 .RE
360 .PP
361 \fBalbum\fR
362 .RS 4
363 Queue a whole album chosen at random from a similar artist\&.
364 .sp
365 \fINota Bene:\fR
366 .br
367
368 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\&.
369 .br
370
371 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\&.
372 .br
373
374 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\&.
375 .sp
376 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\&.
377 .br
378
379 It is planned to allow users to set the values of AlbumArtists tag triggering this behaviour\&. cf\&. feature request #2085 on the tracker\&.
380 .RE
381 .SH "FILES"
382 .PP
383 ${XDG_CONFIG_HOME}/mpd_sima/mpd_sima\&.cfg
384 .RS 4
385 Configuration file\&.
386 .RE
387 .PP
388 ${XDG_DATA_HOME}/mpd_sima/sima\&.db
389 .RS 4
390 SQLite DB file\&.
391 .RE
392 .PP
393 ${XDG_DATA_HOME}/mpd_sima/WEB_SERVICE/
394 .RS 4
395 Persistent http cache\&.
396 .RE
397 .PP
398 Usually
399 \fBXDG_DATA_HOME\fR
400 is set to
401 ${HOME}/\&.local/share
402 and
403 \fBXDG_CONFIG_HOME\fR
404 to
405 ${HOME}/\&.config\&.
406 .br
407 You may override them using command line option
408 \fB\-\-var_dir\fR
409 (cf\&.
410 \fBmpd_sima\fR(1))
411 .SH "FEEDBACK/BUGS"
412 .PP
413 The maintainer would be more than happy to ear from you, don\*(Aqt hesitate to send feedback,
414 \m[blue]\fB\%http://kaliko.me/id/\fR\m[]\&.
415 .PP
416 XMPP
417 users are welcome to join the dedicated chat room at
418 \m[blue]\fBkaliko\&.me@conf\&.azylum\&.org\fR\m[]\&.
419 .SH "SEE ALSO"
420 .PP
421 \fBmpc\fR(1),
422 \fBmpd\fR(1)
423 .PP
424 /usr/share/doc/mpd\-sima/
425 .SH "AUTHOR"
426 .PP
427 \fBJack Kaliko\fR <\&kaliko@azylum\&.org\&>
428 .RS 4
429 Wrote this man page and is currently leading MPD_sima project\&.
430 .RE
431 .SH "COPYRIGHT"
432 .br
433 Copyright \(co 2009-2014 Jack Kaliko
434 .br
435 .PP
436 This manual page was written for the Debian system (and may be used by others)\&.
437 .PP
438 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\&.
439 .PP
440 On Debian systems, the complete text of the GNU General Public License can be found in
441 /usr/share/common\-licenses/GPL\&.
442 .sp