-
Notifications
You must be signed in to change notification settings - Fork 11
/
config.ini
364 lines (296 loc) · 8.48 KB
/
config.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
[config]
absRefPrefix = /index.php/
absFilePrefix = /
logomarkup = "<span style='font-size:0.8em'>SLI</span>M<span style='font-size:0.8em'>PD</span>"
title = sliMpd
; 1 = quiet, 10 = maximal verbosity
cli-verbosity = 1
; currently en, de
langkey = en
; When disabled, locale is set to the system defaults
;locale = de_DE.UTF-8
timezone = UTC
; default session lifetime: 5 years
session_lifetime = 157248000
; display button for quickly browsing through random items (useful for development)
showrandomizer = 0
; files and directories created by sliMpd in cache|embedded|peakfiles
fileCreateMask = 0777
dirCreateMask = 0777
; miliseconds treshold for highlight trackduration
; for visually highlighting interludes or other very short tracks
duration.warning = 60000
[spotcolor]
; preconfigured values are orange,green,red,blue,yellow,pink,cyan,violet
; but you can add or override any color in next section [colors]
mpd = orange
local = green
xwax = yellow
[colors]
defaultwaveform = "#292929"
; color sets
; 1st = all links, logo and player-waveform
; 2nd (darker) = timegrid in player
; fav (lighter) favicon
orange.1st = "#FF9C01"
orange.2nd = "#7B6137"
orange.fav = "rgb(255,156,1)"
green.1st = "rgb(59,187,47)"
green.2nd = "#174612"
green.fav = "rgb(66,241,50)"
red.1st = "#FF5050"
red.2nd = "#4C1818"
red.fav = "#FD7979"
blue.1st = "#5487F4"
blue.2nd = "#14357D"
blue.fav = "#8EB2FF"
yellow.1st = "#EFFE4B"
yellow.2nd = "#4B5018"
yellow.fav = "#EFFE4B"
pink.1st = "#F8289E"
pink.2nd = "#580D38"
pink.fav = "#F760B6"
cyan.1st = "#00E5E5"
cyan.2nd = "#006565"
cyan.fav = "#00E5E5"
violet.1st = "#9932CC"
violet.2nd = "#3B134E"
violet.fav = "#C98CE6"
[waveform]
barwidth = 3
gapwidth = 0.2
mirrored = 1
[mainmenu]
1.title = menu.library
1.url = library
1.permission = media
2.title = menu.playlist
2.url = playlist/page/current
2.permission = media
3.title = menu.playlists
3.url = playlists
3.permission = media
4.title = menu.filebrowser
4.url = filebrowser
4.permission = filebrowser
5.title = menu.importer
5.url = importer
5.permission = importer
6.title = menu.userlist
6.url = users/list
6.permission = users-list
[database]
dbhost = 127.0.0.1
dbusername = xxx
dbpassword = xxx
dbdatabase = xxx
[discogsapi]
; In order to download images from discogs and use some other features of sliMpd you have to:
;
; 1. Create a Discogs account
; 2. Register sliMpd as an application in your Discogs Account ( https://www.discogs.com/settings/developers )
; 3. Add consumer_key and consumer_secret (provided by discogs) to your sliMpd configuration below
; 4. Authorize sliMpd to use your Discogs account ( http://localhost/slimpd/systemcheck#discogs or whatever your domain looks like )
useragent = "sliMpd/0.1 +https://github.com/othmar52/slimpd"
consumer_key =
consumer_secret =
request_token_url = https://api.discogs.com/oauth/request_token
authorize_url = https://www.discogs.com/oauth/authorize
access_token_url = https://api.discogs.com/oauth/access_token
identity_url = https://api.discogs.com/oauth/identity
[sphinx]
host = 127.0.0.1
port = 9306
mainindex = slimpdmain
suggestindex = slimpdsuggest
fields_main = "id,type,itemuid,added,artist,title,year,cat,trackCount,albumCount,artistUids,genreUids,labelUids,sort1,display"
fields_suggest = "id,freq,len,keyword"
freq_threshold = 5
suggest_debug = 0
length_threshold = 2
levenshtein_threshold = 2
top_count = 10
; there are plans to download artworks from discogs directly into album directory (not implemented yet)
[destructiveness]
disable-all = 1
clean-rename = 0
add-images-to-albumdir = 0
move-files-to-trashdir = 0
[mpd]
host = 127.0.0.1
port = 6600
username =
password =
dbfile = /var/lib/mpd/database
http_stream_url =
; insert the same path like "music_directory" in your mpd.conf
musicdir = /var/lib/mpd/music/
; in case you have only symlinks in your mpd musicdir
; files of currentplaylist may have been added with this path by other mpd-clients or a playlist with absolute paths
; comma separated list of absolute paths
alternative_musicdirs =
; mpd-internal update-process
; if set to 1 a specific directory-argument is required for triggering the update process
; reason: mpd needs about 20 minutes for 1 million tracks
; TODO: move to user previleges as soon as userstuff is implemented
disallow_full_database_update = 0
[filebrowser]
; limit maximum displayed items (files+directories) to that number
; in case there is more to show a pagination gets displayed
max-items = 200
; in case you have symlinked musicfiles or playlistfiles to outside of musicdir or alternative_musicdir
; you have to explicitly allow access those files. Be aware that this is a security risk
restrict-to-musicdir = 1
; listing of additional directories in root of filebrowser
; TODO: move to user settings as soon as userstuff is implemented
; example:
;hotlinks = "
; music/Electro
; music/Drum & Bass/
;"
hotlinks =
[mpd-playlist]
; limit of max displayed tracks
max-items = 50
[importer]
; here you can control how the attribute "added to sliMpd database" gets populated
; NOTE: this applies only to the very first import!
; "1" populates with filesystem's last-modified time
; "0" pupulates with timestamp of actually inserting into database
use-filemtime-on-initial-import = 1
[mimetypes]
images.jpeg = image/jpeg
images.jpg = image/jpeg
images.png = image/png
images.gif = image/gif
mp3 = bla
[modules]
enable_fingerprints = 1
; if enable_fingerprints is 1 you have to specify the bin-path tp python 2.X and to lame
; maybe sipmly "python" and "lame" will be fine
bin_python_2 = python2.7
bin_lame = lame
bin_flac = flac
bin_metaflac = metaflac
bin_faad = faad
bin_oggdec = oggdec
bin_mplayer = mplayer
bin_ffmpeg = ffmpeg
bin_md5 = "/usr/bin/md5sum -b"
bin_bpmdetect = "/usr/local/bin/bpm-tag -n -f"
enable_bpmdetect = 0
enable_sphinx = 1
enable_xwax = 0
; correction of missing and obviously invalid tag-values
enable_guessing = 1
; directory download ALPHA
enable_dirdownload = 0
cmd_dirdownload = "7za a -tzip %targetfile %directory"
; do not create archive files greater than max_archivsize MB
max_archivsize = 300
[xwax]
; relative to APP_ROOT or absolute path
clientpath = core/vendor-dist/othmar52/xwax-1.5-osc/xwax-client
server =
decks = 2
showlauncher = 0
cmd_reconnect = "reconnect"
cmd_disconnect = "disconnect"
cmd_recue = "recue"
cmd_get_status = "get_status"
cmd_load_track = "load_track"
cmd_cycle_timecode = "cycle_timecode"
; not supported by xwax-1.5-osc/xwax-client. you have to use a custom client script
; @see: core/scripts/alternative-xwax-client.[sh|py]
cmd_launch = ""
cmd_exit = ""
[playlists]
ext.1 = m3u
ext.2 = pls
ext.3 = nml
[infofiles]
ext.1 = nfo
ext.2 = txt
[musicfiles]
ext.1 = mp3
ext.2 = m4a
ext.3 = flac
ext.4 = wav
ext.5 = aif
ext.6 = aiff
ext.7 = wma
ext.8 = ogg
ext.9 = ac3
; TODO separate handling of videofiles
ext.10 = mp4
[images]
; TODO: choose more decent colors for dummies because its a pretty useless information which should stay in the background
noimage.mpd.color = "#FFFFFF"
noimage.mpd.backgroundcolor = "#FF9C01"
noimage.local.color = "#FFFFFF"
noimage.local.backgroundcolor = "rgb(66,241,50)"
; for now
noimage.mpd.color = "#717171"
noimage.mpd.backgroundcolor = "#202020"
noimage.local.color = "#717171"
noimage.local.backgroundcolor = "#202020"
read_embedded = 1
look_current_directory = 1
look_cover_directory = 1
look_parent_directory = 1
look_silbling_directory = 1
ext.1 = jpg
ext.2 = jpeg
ext.3 = png
ext.4 = png
hide_front_duplicates = 0
common_artwork_dir_names.1 = cover
common_artwork_dir_names.2 = artwork
common_artwork_dir_names.3 = image
common_artwork_dir_names.4 = picture
common_artwork_dir_names.5 = extra
common_artwork_dir_names.6 = coverart
common_artwork_dir_names.7 = scan
common_artwork_dir_names.8 = art
common_artwork_dir_names.9 = leaflet
common_artwork_dir_names.10 = jpg
common_artwork_dir_names.11 = jpeg
common_artwork_dir_names.12 = png
common_artwork_dir_names.13 = assortedcover
common_artwork_dir_names.14 = assortedartwork
common_artwork_dir_names.15 = someartwork
common_artwork_dir_names.16 = artworkandbooklet
common_artwork_dir_names.17 = artworkbooklet
common_artwork_dir_names.18 = artworkandextra
common_artwork_dir_names.19 = albumart
common_artwork_dir_names.20 = cdcover
common_artwork_dir_names.21 = booklet
common_artwork_dir_names.22 = front
; sorting of multiple album images is controlled by this configuration
weightening = "
front
cd1
cd2
cd3
cd4
cd5
cd6
cd7
cd8
cd9
cd10
booklet
inlay
sleeve
sleeveback
card
digipack
sticker
other
back
"
[cli]
memory_limit = 4096M
[users]
allow_empty_password = 1
always_show_guest_usernames = 1