X-Git-Url: https://git.kaliko.me/?a=blobdiff_plain;f=data%2Fman%2Fmpd_sima.cfg.5;h=4816acd4169fe710aed44123d6aa6f949ad6e921;hb=6288b079e5de8e9ee5482e8009111b6ba3cba93a;hp=a03edf9d5f8405238c3d19f4b4d30a68c6eeac03;hpb=44ded3bf628d9db147d528e2d873869c8b5dbf41;p=mpd-sima.git diff --git a/data/man/mpd_sima.cfg.5 b/data/man/mpd_sima.cfg.5 index a03edf9..4816acd 100644 --- a/data/man/mpd_sima.cfg.5 +++ b/data/man/mpd_sima.cfg.5 @@ -1,13 +1,13 @@ '\" t .\" Title: mpd_sima.cfg -.\" Author: Jack Kaliko -.\" Generator: DocBook XSL Stylesheets v1.78.1 -.\" Date: 01/02/2016 -.\" Manual: mpd-sima 0.14.1 User Manual +.\" Author: kaliko +.\" Generator: DocBook XSL Stylesheets v1.79.2 +.\" Date: 11/16/2021 +.\" Manual: mpd-sima 0.18.0 User Manual .\" Source: mpd-sima .\" Language: English .\" -.TH "MPD_SIMA\&.CFG" "5" "01/02/2016" "mpd-sima" "mpd-sima 0.14.1 User Manual" +.TH "MPD_SIMA\&.CFG" "5" "11/16/2021" "mpd-sima" "mpd-sima 0.18.0 User Manual" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- @@ -36,9 +36,40 @@ This manual page documents briefly configuration options available in user configuration file (see the section called \(lqFILES\(rq)\&. .SH "EXAMPLES" -.SS "Album queue mode\&." +.SS "File tags queue mode (offline mode)\&." .PP -Here is an example of album queue configuration\&. +Here is an example of autoqueue using file tags only\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +[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 + + +.fi +.if n \{\ +.RE +.\} +.SS "Album queue mode using last\&.fm recommendations (online mode)\&." +.PP +Here is an example of album queue configuration using online recommendations system\&. .sp .if n \{\ .RS 4 @@ -116,7 +147,7 @@ Configure logging\&. .RS 4 File to log to, usually in d\(aemon mode\&. .br -Defaut (empty or unset) is to log to stdin/stdout\&. +Default (empty or unset) is to log to stdin/stdout\&. .RE .PP \fBverbosity=\fR\fIinfo\fR @@ -171,19 +202,17 @@ For instance a "AwesomePlugin" declared here gets its configuration from the cor The default list of plugins to load at startup: \fBLastfm\fR,\fBRandom\fR,\fBCrop\fR\&. .br + \fBCrop\fR is an utility plugin, it does not queue any tracks (cf\&. below)\&. .br + \fBRandom\fR will queue a track at random if other plugins did not return any tracks\&. .br .sp -You can add here as many plugins you want, currently shipping -\fBLastfm\fR -and -\fBEchoNest\fR -only\&. +You can add, combine here as many plugins you want\&. .br The priority may be used to order them\&. @@ -212,6 +241,16 @@ Use MusicBrainzIdentifier to search music (mainly for artists)\&. Default is Tru Consider using these metadata as it enhances a lot artist/album/tracks identification\&. Use Picard to tag your file: \m[blue]\fB\%https://picard.musicbrainz.org/\fR\m[]\&. .RE +.PP +\fBrepeat_disable_queue=\fR\fItrue\fR +.RS 4 +Prevent disabling queuing in repeat play mode\&. +.RE +.PP +\fBsingle_disable_queue=\fR\fItrue\fR +.RS 4 +Prevent disabling queuing in single play mode\&. +.RE .SS "Crop section" .PP crop plugin\*(Aqs configuration: @@ -231,18 +270,24 @@ Plugin priority .RE .SS "Random section" .PP +When no similar tracks are found, falling back to random queuing\&. +.PP Random plugin\*(Aqs configuration: .PP \fB[random]\fR .RS 4 .RE .PP +\fBtrack_to_add=\fR\fI1\fR +.RS 4 +How many track(s) to add\&. +.RE +.PP \fBflavour=\fR\fIsensible\fR .RS 4 -When no similar tracks are found, falling back to random queuing\&. Different mode, aka random flavour, are available: +Different mode, aka random flavour, are available: \fIpure\fR, \fIsensible\fR, -\fIgenre\fR\&. .sp .RS 4 .ie n \{\ @@ -266,17 +311,6 @@ When no similar tracks are found, falling back to random queuing\&. Different mo \fIsensible\fR, use play history to filter chosen tracks\&. .RE .sp -.RS 4 -.ie n \{\ -\h'-04'\(bu\h'+03'\c -.\} -.el \{\ -.sp -1 -.IP \(bu 2.3 -.\} -\fIgenre\fR, Not implemented yet\&. -.RE -.sp .RE .PP \fBpriority=\fR\fI50\fR @@ -305,7 +339,7 @@ for info about queue modes)\&. .PP \fBmax_art=\fR\fI10\fR .RS 4 -Number of similar artist to retrieve from local media library\&. +Maximum number of similar artist to retrieve from local media library\&. .br When set to something superior to zero, it tries to get as much similar artists from media library\&. .RE @@ -332,7 +366,8 @@ How many track(s) to add\&. Only relevant in \fBtop\fR and \fBtrack\fR -queue modes\&. +queue modes\&. This is actually an upper limit, min(\fBmax_art\fR, +\fBtrack_to_add\fR) will be used\&. .RE .PP \fBalbum_to_add=\fR\fI1\fR @@ -342,13 +377,21 @@ How many album(s) to add\&. Only relevant in queue modes\&. .RE .PP +\fBtrack_to_add_from_album=\fR\fI0\fR +.RS 4 +How many track(s) to add from each selected albums\&. Only relevant in +\fBalbum\fR +queue modes\&. When set to 0 or lower the whole album is queued\&. +.RE +.PP \fBcache=\fR\fITrue\fR .RS 4 Whether or not to use on\-disk persistent http cache\&. .br When set to "true", sima will use a persistent cache for its http client\&. The cache is written along with the dbfile in: .br -$XDG_CONFIG_HOME/mpd_sima/http/WEB_SERVICE\&. + +$XDG_DATA_HOME/mpd_sima/http/WEB_SERVICE\&. .br If set to "false", caching is still done but in memory\&. @@ -358,48 +401,148 @@ If set to "false", caching is still done but in memory\&. .RS 4 Plugin priority .RE -.SS "EchoNest section" +.SS "Genre section" +.PP +Genre plugin\*(Aqs configuration\&. .PP -EchoNest plugin\*(Aqs configuration\&. +This plugin permits offline autoqueuing based on files genre tag only\&. .PP -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\&. +it will try to queue tracks base on genre tags of tracks in the queue\&. .PP -\fB[echonest]\fR +\fB[genre]\fR .RS 4 .RE .PP \fBqueue_mode=\fR\fItrack\fR .RS 4 +Queue mode to use among +\fItrack\fR, +\fIalbum\fR +(see +the section called \(lqQUEUE MODES\(rq +for info about queue modes)\&. .RE .PP -\fBmax_art=\fR\fI10\fR +\fBsingle_album=\fR\fIfalse\fR .RS 4 +Prevent from queueing a track from the same album (it often happens with OST)\&. +.br + +Only relevant in "track" queue mode\&. .RE .PP -\fBdepth=\fR\fI1\fR +\fBpriority=\fR\fI80\fR +.RS 4 +Plugin priority +.RE +.PP +\fBtrack_to_add=\fR\fI1\fR +.RS 4 +How many track(s) to add\&. +.RE +.PP +\fBalbum_to_add=\fR\fI1\fR +.RS 4 +How many album(s) to add\&. Only relevant in +\fBalbum\fR +queue mode\&. +.RE +.SS "Tags section" +.PP +Tags plugin\*(Aqs configuration\&. There is no default configuration for this plugin, it does not work out of the box\&. +.PP +This plugin permits offline autoqueuing based on files tags only\&. Supported tags are +\fB\*(Aqcomment\*(Aq\fR, +\fB\*(Aqdate\*(Aq\fR, +\fB\*(Aqgenre\*(Aq\fR, +\fB\*(Aqlabel\*(Aq\fR +and +\fB\*(Aqoriginaldate\*(Aq\fR\&. +.PP +In addition to supported tags above you can use an MPD filter\&. Please refer to MPD protocol documentation for more\&. +.PP +All tag entries in this section are ANDed as a single MPD filter to look for titles in the library\&. Moreover, for each tags, comma separated values are also ORed\&. +.br + +For instance setting "\fBgenre=rock\fR" and "\fBdate=1982,1983,1984,1985,1986,1987,1988,1989\fR" will end up looking for track tagged with genre +\fBrock\fR +and date within 1982 through 1989\&. +.br + +Using an MPD filter to replace +\fBdate\fR +you can achieve the same with the following setting: "\fBgenre=rock\fR" and "\fBfilter=(date =~ \*(Aq198[2\-9]+\*(Aq)\fR" (provided your MPD server was compiled with libpcre)\&. +.PP +\fB[tags]\fR .RS 4 .RE .PP +\fBqueue_mode=\fR\fItrack\fR +.RS 4 +Queue mode to use among +\fItrack\fR, +\fIalbum\fR +(see +the section called \(lqQUEUE MODES\(rq +for info about queue modes)\&. +.RE +.PP \fBsingle_album=\fR\fIfalse\fR .RS 4 +Prevent from queueing a track from the same album (it often happens with OST)\&. +.br + +Only relevant in "track" queue mode\&. .RE .PP -\fBtrack_to_add=\fR\fI1\fR +\fBfilter=\fR .RS 4 +You can use here any valid MPD filter as defined in MPD protocol documentation\&. .RE .PP -\fBalbum_to_add=\fR\fI1\fR +\fBcomment=\fR .RS 4 .RE .PP -\fBpriority=\fR\fI100\fR +\fBdate=\fR +.RS 4 +.RE +.PP +\fBgenre=\fR +.RS 4 +.RE +.PP +\fBlabel=\fR +.RS 4 +.RE +.PP +\fBoriginaldate=\fR +.RS 4 +.RE +.PP +\fBpriority=\fR\fI80\fR +.RS 4 +Plugin priority +.RE +.PP +\fBtrack_to_add=\fR\fI1\fR +.RS 4 +How many track(s) to add\&. +.RE +.PP +\fBalbum_to_add=\fR\fI1\fR .RS 4 +How many album(s) to add\&. Only relevant in +\fBalbum\fR +queue mode\&. .RE .SH "QUEUE MODES" .PP -mpd\-sima offers different queue modes\&. All of them pick up tracks from artists similar to the last track in the queue\&. +Different queue modes are available with some plugins (check for +\fBqueue_mode\fR +presence in plugin config)\&. .PP -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\&. +mpd\-sima tries preferably to chose among unplayed artists or at least not recently played artist\&. .PP \fBtrack\fR .RS 4 @@ -463,7 +606,7 @@ and .SH "FEEDBACK/BUGS" .PP The maintainer would be more than happy to ear from you, don\*(Aqt hesitate to send feedback, -\m[blue]\fB\%http://kaliko.me/id/\fR\m[]\&. +\m[blue]\fB\%https://kaliko.me/contact/\fR\m[]\&. .PP XMPP users are welcome to join the dedicated chat room at @@ -476,13 +619,13 @@ users are welcome to join the dedicated chat room at /usr/share/doc/mpd\-sima/ .SH "AUTHOR" .PP -\fBJack Kaliko\fR <\&kaliko@azylum\&.org\&> +\fBkaliko\fR <\&kaliko@azylum\&.org\&> .RS 4 Wrote this man page and is currently leading MPD_sima project\&. .RE .SH "COPYRIGHT" .br -Copyright \(co 2009-2016 Jack Kaliko +Copyright \(co 2009-2021 kaliko .br .PP This manual page was written for the Debian system (and may be used by others)\&.