]> kaliko git repositories - mpd-sima.git/blob - doc/examples/all_settings.cfg
Document new offline autoqueue plugin based on file tags only
[mpd-sima.git] / doc / examples / all_settings.cfg
1 ########################################################################
2 #
3 # If you need special settings, rename this file as mpd_sima.cfg within
4 # your $XDG_CONFIG_HOME (default is $HOME/.config/mpd_sima/)
5 # You can also call it with --config option.
6 #
7 # cf. man 5 mpd_sima.cfg
8 ########################################################################
9
10 ########################## MPD SECTION ################################
11 #
12 [MPD]
13 ## HOST
14 # type: string (IP or FQDN)
15 # description: MPD host
16 # default: localhost
17 host = localhost
18
19 ## PORT
20 # type: integer
21 # description: MPD host port
22 # default: 6600
23 port = 6600
24
25 ## PASSWORD
26 # type: string
27 # default: unset, not using authentication
28 # description: MPD host password, comment if you don't use
29 #password = s3cr3t
30
31 #
32 #######################################################################
33
34 ######################## LOGGING FACILITY #############################
35 #
36 [log]
37 ## LOGFILE
38 # type: string (file path)
39 # description: file to log to. Usually used in daemon mode.
40 # default: unset, logging to stdin/stdout
41 #logfile =
42
43 ## VERBOSITY
44 # type: string
45 # description: log verbosity
46 # default: info
47 # Possible values:
48 #    * debug, PAY ATTENTION: *DEBUG LEVEL MIGHT PRINT OUT YOUR PASSWORD*
49 #    * info, default
50 #    * warning
51 #    * error
52 verbosity = info
53
54 #
55 #######################################################################
56
57
58 ######################## SIMA CORE ####################################
59 #
60 # These settings deal with MPD_sima core behaviour.
61 [sima]
62 ## PLUGINS
63 # type: comma separated string list
64 #       for ex.:
65 #                contrib = Scrobble, AwesomePlugin,
66 #                          ExperimentalTest, AnotherTest
67 # default:
68 #          internal = "Lastfm, Random, Crop"
69 #          contrib =
70 #
71 # Possible values for internal
72 #       Lastfm   : Queue using last.fm web service for suggestions.
73 #       Random   : Queue a track at random (different flavour, cf. documentation)
74 #       Crop     : Remove old tracks from queue
75 #
76 # description: Plugins list declaration.
77 #     Optional plugin's configuration lays in its own section.
78 #     For instance a "AwesomePlugin" declared here
79 #     gets its configuration from the corresponding section:
80 #     "[awesomeplugin]"
81 #     internal plugins will look for a section named after the lower-cased name
82 #     of the plugin, ie. AwesomePlugin → awesomeplugin.
83 #
84 #     Two plugins sources are available, internal and contrib
85 #
86 internal = Lastfm, Random, Crop
87 #contrib =
88
89 ## HISTORY_DURATION
90 # type: integer (in hours)
91 # default: 8
92 # description: How far to look back in history to avoid to play twice the same
93 #     track/title
94 #
95 history_duration = 8
96
97 ## QUEUE_LENGTH
98 # type: integer
99 # default: 2
100 # description: Queue length threshold triggering tracks addition
101 queue_length = 2
102
103 ## MUSICBRAINZID
104 # type: boolean
105 # default: True
106 # description: Use of MusicBrainzIdentifier tag
107 musicbrainzid = True
108
109 ## REPEAT_DISABLE_QUEUE
110 # type: boolean
111 # default: True
112 # description: Prevent repeat play mode to disable queuing
113 repeat_disable_queue = True
114
115 ## SINGLE_DISABLE_QUEUE
116 # type: boolean
117 # default: True
118 # description: Prevent single play mode to disable queuing
119 single_disable_queue  = True
120
121 ######################### PLUGINS #####################################
122
123 [tags]
124 ## Offline tags queing
125 # This plugin has no defaults set
126
127 # TAGS, any of the supported tags below
128 # type: string
129 # default: not set
130 # description: 
131 comment=
132 date=
133 genre=
134 label=
135 originaldate=
136
137 # FILTER
138 # type: string
139 # default: not set
140 # description: Forge your own MPD filter (cf MPD protocol documentation)
141 filter=
142
143 [crop]
144 ## CONSUME
145 # type: integer
146 # default: 10
147 # description: How many played tracks to keep in the playlist.
148 #  Allow to maintain a fixed length playlist.
149 #  Set a negative value to disable cropping (or remove plugin from sima/internal)
150 #consume = 10
151
152 [random]
153 ## FLAVOUR
154 # type: string
155 # default: sensible
156 # description: Random queuing, different mode, aka random flavour, are available.
157 #     random flavour :
158 #       * pure:     complete random choice among all tracks available in the
159 #                   player media library
160 #       * sensible: use play history to filter chosen tracks
161 #       * genre:    # NOT IMPLEMENTED #
162 #                   chose among the same genre as current track (using genre
163 #                   tag). If no genre tag is available "sensible" flavour
164 #                   is used  instead
165 flavour=sensible
166
167 ## TRACK_TO_ADD
168 # type: integer
169 # description: how many tracks the plugin will try to get
170 # default: 1
171 #track_to_add = 1
172
173
174 [lastfm]
175 ## QUEUE_MODE
176 # type: string
177 # description: The default is to queue random tracks from similar artists.
178 # Possible values:
179 #       track : Will queue tracks from similar artists (default).
180 #       top   : Will queue top tracks from similar artists.
181 #       album : Will queue whole album from similar artists.
182 queue_mode = track
183
184 ## MAX_ART
185 # type: integer
186 # description: Number of similar artist to retrieve from local media library.
187 #  When set to something superior to zero, MPD_sima tries to get as much similar
188 #  artists from media library
189 max_art = 10
190
191 ## DEPTH
192 # type: integer in [1, +∞]
193 # default: 1
194 # description: TBD
195 depth = 1
196
197 ## SINGLE_ALBUM
198 # type: boolean
199 # scope: "track" and "top" queue modes
200 # description: Prevent from queueing a track from the same album (for instance
201 #  with OST).
202 single_album = false
203
204 ## TRACK_TO_ADD
205 # type: integer
206 # scope: "track" and "top" queue modes
207 # description: how many tracks the plugin will try to get
208 track_to_add = 1
209
210 ## ALBUM_TO_ADD
211 # type: integer
212 # scope: "album" queue mode
213 # description: how many albums the plugin will try to get
214 album_to_add = 1
215
216 ## TRACK_TO_ADD_FROM_ALBUM
217 # type: integer
218 # scope: "album" queue mode
219 # description: how many tracks from one album the plugin will try to get
220 #              defaults to 0 to queue the whole album
221 track_to_add_from_album = 0
222
223 ## SHUFFLE_ALBUM
224 # type: boolean
225 # scope: "album" queue mode
226 # description: should the tracks of the album be shuffled
227 shuffle_album = false
228
229 ## CACHE
230 # type: boolean
231 # description: whether or not to use on-disk persistent http cache
232 #  * When set to "true", sima will use a persistent cache for its http client.
233 #    The cache is written along with the dbfile in:
234 #                $XDG_CONFIG_HOME/mpd_sima/http/<web_service>
235 #     Until #7 is closed LastFM is broken; cf. https://gitlab.com/kaliko/sima/issues/7
236 #  * If set to "false", caching is still done but in memory.
237 # default: True
238 cache = True
239
240 #
241 ####################### END OF CONFIGURATION ##########################
242 # vim: syntax=cfg fileencoding=utf-8