]> kaliko git repositories - mpd-sima.git/blob - data/man/mpd_sima.cfg.5.xml
Enhanced queuing behavior in random mode (Closes #16)
[mpd-sima.git] / data / man / mpd_sima.cfg.5.xml
1 <?xml version='1.0' encoding='UTF-8'?>
2 <!--
3
4 `xsltproc -''-nonet \
5           -''-param man.charmap.use.subset "0" \
6           -''-param make.year.ranges "1" \
7           -''-param make.single.year.ranges "1" \
8           /usr/share/xml/docbook/stylesheet/nwalsh/manpages/docbook.xsl \
9           manpage.xml'
10
11 A manual page <package>.<section> will be generated. You may view the
12 manual page with: nroff -man <package>.<section> | less'. A typical entry
13 in a Makefile or Makefile.am is:
14
15 DB2MAN = /usr/share/sgml/docbook/stylesheet/xsl/nwalsh/manpages/docbook.xsl
16 XP     = xsltproc -''-nonet -''-param man.charmap.use.subset "0"
17
18 manpage.1: manpage.xml
19         $(XP) $(DB2MAN) $<
20
21 The xsltproc binary is found in the xsltproc package. The XSL files are in
22 docbook-xsl. A description of the parameters you can use can be found in the
23 docbook-xsl-doc-* packages. Please remember that if you create the nroff
24 version in one of the debian/rules file targets (such as build), you will need
25 to include xsltproc and docbook-xsl in your Build-Depends control field.
26 Alternatively use the xmlto command/package. That will also automatically
27 pull in xsltproc and docbook-xsl.
28
29 Notes for using docbook2x: docbook2x-man does not automatically create the
30 AUTHOR(S) and COPYRIGHT sections. In this case, please add them manually as
31 <refsect1> ... </refsect1>.
32
33 To disable the automatic creation of the AUTHOR(S) and COPYRIGHT sections
34 read /usr/share/doc/docbook-xsl/doc/manpages/authors.html. This file can be
35 found in the docbook-xsl-doc-html package.
36
37 Validation can be done using: `xmllint -''-noout -''-valid manpage.xml`
38
39 General documentation about man-pages and man-page-formatting:
40 man(1), man(7), http://www.tldp.org/HOWTO/Man-Page/
41
42 -->
43 <!DOCTYPE refentry [
44
45   <!ENTITY dhsection   "5">
46   <!ENTITY dhpackage "mpd-sima">
47   <!ENTITY dhutils "mpd_sima.cfg">
48
49 ]>
50
51 <refentry xmlns="http://docbook.org/ns/docbook"
52           xmlns:xi="http://www.w3.org/2001/XInclude" version="5.0">
53   <xi:include href="info.xml" />
54   <refmeta>
55       <refentrytitle>&dhutils;</refentrytitle>
56       <manvolnum>&dhsection;</manvolnum>
57   </refmeta>
58     <refnamediv>
59         <refname>&dhutils;</refname>
60         <refpurpose>&dhpackage; will try to maintain some titles ahead in the queue
61             following different policies. This manual document the
62             configuration file for &dhpackage;.</refpurpose>
63     </refnamediv>
64     <refsect1 id="description">
65         <title>DESCRIPTION</title>
66         <para>This manual page documents briefly <command>&dhpackage;</command>
67             configuration options available in user configuration file
68             (see <xref linkend="files"/>).</para>
69     </refsect1>
70     <refsect1 id="examples">
71         <title>EXAMPLES</title>
72         <!--
73         <refsect2 id="track">
74             <title>Default queue mode, similar artist.</title>
75             <para></para>
76             <para></para>
77         </refsect2> -->
78         <refsect2 id="album">
79             <title>Album queue mode.</title>
80             <para>Here is an example of album queue configuration.</para>
81             <programlisting><xi:include href="album.cfg" parse="text" />
82             </programlisting>
83         </refsect2>
84     </refsect1>
85
86     <refsect1 id="options">
87         <title>Configuration file</title>
88         <para>The configuration file consists of sections, led by a
89             <command>[section]</command> header and followed by <option>name: value</option>
90             entries, with continuations in the style of RFC 822 (see section
91             3.1.1, “LONG HEADER FIELDS”); <option>name=value</option> is also accepted. Lines
92             beginning with <parameter>'#'</parameter> or <parameter>';'</parameter>
93             are ignored and may be used to provide comments (<emphasis>Nota
94                 Bene:</emphasis> inline comment are possible using <parameter>'#'</parameter>).</para>
95         <title>OPTIONS</title>
96         <para>The default values are used in the options lists below.</para>
97         <refsect2 id="MPD">
98             <title>MPD section</title>
99             <para>This section is meant to configure MPD access, MPD host
100                 address / port and password if necessary.</para>
101             <variablelist>
102                 <!-- Use the variablelist.term.separator and the
103                 variablelist.term.break.after parameters to
104                 control the term elements. -->
105                 <varlistentry> <!-- MPD -->
106                     <term><option>[MPD]</option></term>
107                     <listitem></listitem>
108                 </varlistentry>
109                 <varlistentry> <!-- MPD.host -->
110                     <term><option>host=</option><replaceable>localhost</replaceable></term>
111                     <listitem>
112                         <para>Set MPD host. Use IP or FQDN.</para>
113                     </listitem>
114                 </varlistentry>
115                 <varlistentry> <!-- MPD.port -->
116                     <term><option>port=</option><replaceable>6600</replaceable></term>
117                     <listitem>
118                         <para>Set host port to access MPD to.</para>
119                     </listitem>
120                 </varlistentry>
121                 <varlistentry> <!-- MPD.password -->
122                     <term><option>password=</option><replaceable>s3cr3t</replaceable></term>
123                     <listitem>
124                         <para>Set MPD password to use. Do not use this option
125                             if you don't have enabled password protected access
126                             on your MPD server.</para>
127                     </listitem>
128                 </varlistentry>
129             </variablelist>
130         </refsect2>
131         <refsect2 id="log">
132             <title>log section</title>
133             <para>Configure logging.</para>
134             <variablelist>
135                 <varlistentry> <!-- LOG -->
136                     <term><option>[log]</option></term>
137                     <listitem><para></para></listitem>
138                 </varlistentry>
139                 <varlistentry> <!-- log.logfile -->
140                     <term><option>logfile=</option></term>
141                     <listitem>
142                         <para>File to log to, usually in dæmon mode.<sbr />Defaut
143                             (empty or unset) is to log to stdin/stdout.</para>
144                     </listitem>
145                 </varlistentry>
146                 <varlistentry> <!-- log.verbosity -->
147                     <term><option>verbosity=</option><replaceable>info</replaceable></term>
148                     <listitem>
149                         <para>Logging verbosity among
150                             <replaceable>debug</replaceable>,
151                             <replaceable>info</replaceable>,
152                             <replaceable>warning</replaceable>,
153                             <replaceable>error</replaceable>.</para>
154                     </listitem>
155                 </varlistentry>
156             </variablelist>
157         </refsect2>
158         <refsect2 id="daemon">
159             <title>Process daemonization</title>
160             <para>Configure process daemon.</para>
161             <variablelist>
162                 <varlistentry> <!-- DAEMON -->
163                     <term><option>[daemon]</option></term>
164                     <listitem><para></para></listitem>
165                 </varlistentry>
166                 <varlistentry> <!-- daemon.daemon -->
167                     <term><option>daemon=false</option></term>
168                     <listitem>
169                         <para>whether to daemonize process or not.</para>
170                     </listitem>
171                 </varlistentry>
172                 <varlistentry> <!-- daemon.pidfile -->
173                     <term><option>pidfile=</option></term>
174                     <listitem>
175                         <para>Where to store process ID.</para>
176                     </listitem>
177                 </varlistentry>
178             </variablelist>
179         </refsect2>
180         <refsect2 id="sima">
181             <title>sima section</title>
182             <para>Core &dhutils; configuration.</para>
183             <variablelist>
184                 <varlistentry> <!-- SIMA -->
185                     <term><option>[sima]</option></term>
186                     <listitem><para></para></listitem>
187                 </varlistentry>
188             <variablelist>
189                 <varlistentry> <!-- sima.contrib -->
190                     <term><option>contrib=</option><replaceable></replaceable></term>
191                     <listitem>
192                         <para></para>
193                     </listitem>
194                 </varlistentry>
195                 <varlistentry> <!-- sima.internal -->
196                     <term><option>internal=</option><replaceable>Lastfm, Random, Crop</replaceable></term>
197                     <listitem>
198                         <para>&dhpackage;'s plugin management for internal source plugin
199                             and contrib (ie. external plugins).<sbr /> Plugins list is a
200                             comma separated string list.<sbr /> Optional plugin's
201                             configuration lays in its own section.<sbr />For instance a
202                             "AwesomePlugin" declared here gets its configuration from the
203                             corresponding section "[awesomeplugin]".
204                         </para>
205                         <para>The default list of plugins to load at startup: <option>Lastfm</option>,<option>Random</option>,<option>Crop</option>.<sbr />
206                             <option>Crop</option> is an utility plugin, it does not queue any tracks (cf. below).<sbr />
207                             <option>Random</option> will queue a track at random if other plugins did not return any tracks.<sbr />
208                         </para>
209                         <para>You can add here as many plugins you want,
210                             currently shipping <option>Lastfm</option> and
211                             <option>EchoNest</option> only.<sbr />
212                             The priority may be used to order them.
213                         </para>
214                     </listitem>
215                 </varlistentry>
216                 <varlistentry> <!-- sima.history_duration -->
217                     <term><option>history_duration=</option><replaceable>8</replaceable></term>
218                     <listitem>
219                         <para>How far to look back in history to avoid to play
220                             twice the same track/title (duration in
221                             hours).<sbr />
222                             The <option>history_duration</option> is also used to give priority to not recently played artists.
223                         </para>
224                     </listitem>
225                 </varlistentry>
226                 <varlistentry> <!-- sima.queue_length -->
227                     <term><option>queue_length=</option><replaceable>2</replaceable></term>
228                     <listitem>
229                         <para>Threshold value triggering queue process.</para>
230                     </listitem>
231                 </varlistentry>
232                 <varlistentry> <!-- sima.musicbrainzid -->
233                     <term><option>musicbrainzid=</option><replaceable>true</replaceable></term>
234                     <listitem>
235                         <para>Use MusicBrainzIdentifier to search music (mainly
236                             for artists).
237                             Default is True, switch to False if you don't have
238                             MusicBrainzIdentifier set for at least 80% of you
239                             music library.<sbr /> Consider using these metadata as it
240                             enhances a lot artist/album/tracks identification.
241                             Use Picard to tag your file: <ulink url="https://picard.musicbrainz.org/"/>.
242                         </para>
243                     </listitem>
244                 </varlistentry>
245             </variablelist>
246             </variablelist>
247         </refsect2>
248         <refsect2 id="crop">
249             <title>Crop section</title>
250             <para>crop plugin's configuration:</para>
251                 <varlistentry> <!-- crop -->
252                     <term><option>[crop]</option></term>
253                 </varlistentry>
254                 <varlistentry> <!-- crop.consume -->
255                     <term><option>consume=</option><replaceable>10</replaceable></term>
256                     <listitem>
257                         <para>How many played tracks to keep in the queue.
258                             Allows you to maintain a fixed length queue.
259                             Set to some negative integer to keep all played tracks.
260                         </para>
261                     </listitem>
262                 </varlistentry>
263                 <varlistentry> <!-- crop.priority -->
264                     <term><option>priority=</option><replaceable>10</replaceable></term>
265                     <listitem>
266                         <para>
267                             Plugin priority
268                         </para>
269                     </listitem>
270                 </varlistentry>
271         </refsect2>
272         <refsect2 id="random">
273             <title>Random section</title>
274             <para>Random plugin's configuration:</para>
275                 <varlistentry> <!-- random -->
276                     <term><option>[random]</option></term>
277                 </varlistentry>
278                 <varlistentry> <!-- random.flavour -->
279                     <term><option>flavour=</option><replaceable>sensible</replaceable></term>
280                     <listitem>
281                         <para>When no similar tracks are found, falling back to
282                             random queuing. Different mode, aka random flavour,
283                             are available:
284                             <replaceable>pure</replaceable>,
285                             <replaceable>sensible</replaceable>,
286                             <replaceable>genre</replaceable>.
287                             <itemizedlist mark='bullet'>
288                                 <listitem>
289                                     <para><replaceable>pure</replaceable>, pure random choice, even among recently played track.
290                                     </para>
291                                 </listitem>
292                                 <listitem >
293                                     <para><replaceable>sensible</replaceable>, use play history to filter chosen tracks.
294                                     </para>
295                                 </listitem>
296                                 <listitem>
297                                     <para><replaceable>genre</replaceable>, Not implemented yet.
298                                     </para>
299                                 </listitem>
300                             </itemizedlist>
301                         </para>
302                     </listitem>
303                 </varlistentry>
304                 <varlistentry> <!-- random.priority -->
305                     <term><option>priority=</option><replaceable>50</replaceable></term>
306                     <listitem>
307                         <para>
308                             Plugin priority
309                         </para>
310                     </listitem>
311                 </varlistentry>
312         </refsect2>
313         <refsect2 id="lastfm">
314             <title>LastFm section</title>
315             <para>LastFM plugin's configuration.</para>
316             <variablelist>
317                 <varlistentry> <!-- lastfm -->
318                     <term><option>[lastfm]</option></term>
319                 </varlistentry>
320                 <varlistentry> <!-- lastfm.queue_mode -->
321                     <term><option>queue_mode=</option><replaceable>track</replaceable></term>
322                     <listitem>
323                         <para>Queue mode to use among
324                             <replaceable>track</replaceable>,
325                             <replaceable>top</replaceable> and
326                             <replaceable>album</replaceable> (see <xref linkend="queue_mode"/> for info about queue modes).</para>
327                     </listitem>
328                 </varlistentry>
329                 <varlistentry> <!-- lastfm.max_art -->
330                     <term><option>max_art=</option><replaceable>10</replaceable></term>
331                     <listitem>
332                         <para>Number of similar artist to retrieve from local
333                             media library.<sbr />When set to something superior
334                             to zero, it tries to get as much similar artists
335                             from media library.</para>
336                     </listitem>
337                 </varlistentry>
338                 <varlistentry> <!-- lastfm.depth -->
339                     <term><option>depth=</option><replaceable>1</replaceable></term>
340                     <listitem>
341                         <para>How many artists to base on similar artists
342                             search.<sbr /> The first is the last played artist
343                             and so on back in the history. Highter depth
344                             generates wider suggestions, it might help to
345                             reduce looping over same artists.
346                             </para>
347                     </listitem>
348                 </varlistentry>
349                 <varlistentry> <!-- lastfm.single_album -->
350                     <term><option>single_album=</option><replaceable>false</replaceable></term>
351                     <listitem>
352                         <para>Prevent from queueing a track from the same album
353                             (it often happens with OST).<sbr />
354                             Only relevant in "track" queue mode.</para>
355                     </listitem>
356                 </varlistentry>
357                 <varlistentry> <!-- lastfm.track_to_add -->
358                     <term><option>track_to_add=</option><replaceable>1</replaceable></term>
359                     <listitem>
360                         <para>How many track(s) to add. Only relevant in
361                             <option>top</option> and <option>track</option>
362                             queue modes.</para>
363                     </listitem>
364                 </varlistentry>
365                 <varlistentry> <!-- lastfm.album_to_add -->
366                     <term><option>album_to_add=</option><replaceable>1</replaceable></term>
367                     <listitem>
368                         <para>How many album(s) to add. Only relevant in
369                             <option>album</option> queue modes.</para>
370                     </listitem>
371                 </varlistentry>
372                 <varlistentry> <!-- lastfm.cache -->
373                     <term><option>cache=</option><replaceable>True</replaceable></term>
374                     <listitem>
375                         <para>Whether or not to use on-disk persistent http
376                             cache.<sbr />When set to "true", sima will use a
377                             persistent cache for its http client. The cache is
378                             written along with the dbfile in:<sbr />
379                             <filename>$XDG_CONFIG_HOME/mpd_sima/http/WEB_SERVICE</filename>.<sbr/>
380                             If set to "false", caching is still done but in memory.
381                         </para>
382                     </listitem>
383                 </varlistentry>
384                 <varlistentry> <!-- lastfm.priority -->
385                     <term><option>priority=</option><replaceable>100</replaceable></term>
386                     <listitem>
387                         <para>
388                             Plugin priority
389                         </para>
390                     </listitem>
391                 </varlistentry>
392             </variablelist>
393         </refsect2>
394         <refsect2 id="echonest">
395             <title>EchoNest section</title>
396             <para>EchoNest plugin's configuration.</para>
397             <para>Options for EchoNest are exactly the same as LastFm (same
398                 default as well), except for cache plugin which is always
399                 needed to limit number of requests to the service.</para>
400             <variablelist>
401                 <varlistentry> <!-- echonest -->
402                     <term><option>[echonest]</option></term>
403                 </varlistentry>
404                 <varlistentry> <!-- echonest.queue_mode -->
405                     <term><option>queue_mode=</option><replaceable>track</replaceable></term>
406                 </varlistentry>
407                 <varlistentry> <!-- echonest.max_art -->
408                     <term><option>max_art=</option><replaceable>10</replaceable></term>
409                 </varlistentry>
410                 <varlistentry> <!-- echonest.depth -->
411                     <term><option>depth=</option><replaceable>1</replaceable></term>
412                 </varlistentry>
413                 <varlistentry> <!-- echonest.single_album -->
414                     <term><option>single_album=</option><replaceable>false</replaceable></term>
415                 </varlistentry>
416                 <varlistentry> <!-- echonest.track_to_add -->
417                     <term><option>track_to_add=</option><replaceable>1</replaceable></term>
418                 </varlistentry>
419                 <varlistentry> <!-- echonest.album_to_add -->
420                     <term><option>album_to_add=</option><replaceable>1</replaceable></term>
421                 </varlistentry>
422                 <varlistentry> <!-- echonest.priority -->
423                     <term><option>priority=</option><replaceable>100</replaceable></term>
424                 </varlistentry>
425             </variablelist>
426         </refsect2>
427     </refsect1>
428     <refsect1 id="queue_mode">
429         <title>QUEUE MODES</title>
430         <para>&dhpackage; offers different queue modes. All of them pick up
431             tracks from artists similar to the last track in the queue.</para>
432         <para>&dhpackage; tries preferably to chose among unplayed artists or
433             at least not recently played artist. Concerning track and album
434             queue modes titles are chosen purely at random among unplayed
435             tracks.</para>
436         <variablelist>
437             <varlistentry>
438                 <term><option>track</option></term>
439                 <listitem>
440                     <para>Queue a similar track chosen at random from a similar artist.</para>
441                 </listitem>
442             </varlistentry>
443             <varlistentry>
444                 <term><option>top</option></term>
445                 <listitem>
446                     <para>Queue a track from a similar artist, chosen among
447                         "top tracks" according to last.fm data mining.</para>
448                 </listitem>
449             </varlistentry>
450             <varlistentry>
451                 <term><option>album</option></term>
452                 <listitem>
453                     <para>Queue a whole album chosen at random from a similar artist.</para>
454                     <para><emphasis>Nota Bene:</emphasis><sbr /> Due to the
455                         track point of view of database build upon tracks tags
456                         an album lookup for a specific artist will return
457                         albums as soon as this artist appears in a single track
458                         of the album.<sbr />
459                         For instance looking for album from "The Velvet
460                         Underground" will fetch "Last Days" and "Juno" OSTs
461                         because the band appears on the soundtrack of these two
462                         movies.<sbr />
463                         A solution is for you to set AlbumArtists tag to
464                         something different than the actual artist of the
465                         track. For compilations, OSTs etc. a strong convention
466                         is to use "Various Artists" for this tag.</para>
467                     <para>&dhpackage; is currently looking for AlbumArtists tags
468                         and avoid album where this tag is set with "Various
469                         Artists". If a single track within an album is found
470                         with AlbumArtists:"Various Artists" the complete album
471                         is skipped and won't be queued.</para>
472                 </listitem>
473             </varlistentry>
474         </variablelist>
475     </refsect1>
476   <xi:include href="files.xml" />
477   <xi:include href="feedback.xml" />
478   <xi:include href="seealso.xml" />
479 </refentry>