-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.lua
37 lines (28 loc) · 1.12 KB
/
config.lua
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
-- Demlo configuration file (Lua)
-- No colors by default since it may not work on all terminals.
Color = true
-- Number of cores to use (0 for all).
Cores = 0
-- Path to 'exist' action, i.e. what to do when destination exists. Set
-- 'output.write' to "over", "skip", or anything else for appending a random
-- suffix to the file name.
Exist = ''
-- Extensions to look for when a folder is browsed.
Extensions = {}
ext = {'flac', 'mp3', 'm4a', 'ogg', 'mp4', 'ac3', 'aac', 'wma', 'wav'}
for _, v in ipairs(ext) do
Extensions[v]=true
end
-- Fetch cover from an online database.
Getcover = false
-- Fetch tags from an online database.
Gettags = false
-- Lua code to run before and after the other scripts, respectively.
Prescript = ''
Postscript = ''
-- If false, show preview and exit before processing.
Process = false
-- Scripts to run by default.
-- Demlo will run them in lexicographic order.
-- Order matters, e.g. 'path' can be influenced by the modifications made by 'tag'.
Scripts = {'000-util', '001-globals', '01-default', '10-tag-fields', '11-tag-contents', '20-encode', '30-basename', '31-directory', '32-path', '40-cover'}