chiark / gitweb /
946302ad72e00da983544d75b6a53154b2dbe3d0
[disorder] / examples / config.sample.in
1 # player programs
2 player *.mp3 execraw mpg321 -q -o disorder
3 player *.ogg execraw ogg123 -q -d disorder -o fragile:1
4 player *.wav shell --wait-for-device play
5
6 # use the fs module to list files under /export/mp3.  The encoding
7 # is ISO-8859-1.
8 collection fs ISO-8859-1 /export/mp3
9
10 # don't leave a gap between tracks
11 gap 0
12
13 # scratch tracks
14 scratch pkgdatadir/slap.ogg
15 scratch pkgdatadir/scratch.mp3
16
17 # trust the web user and root
18 trust www-data root
19
20 # run as user jukebox
21 user jukebox
22
23 # volume control
24 mixer /dev/mixer
25 channel pcm
26
27 # URL of the web interface
28 url http://jukebox.anjou.terraraq.org.uk/
29
30 # stopwords (i.e. ignored words) for the track search facility
31 stopword 01 02 03 04 05 06 07 08 09 10
32 stopword 1 2 3 4 5 6 7 8 9
33 stopword 11 12 13 14 15 16 17 18 19 20
34 stopword 21 22 23 24 25 26 27 28 29 30
35 stopword the a an and to too in on of we i am as im for is
36
37 # namepart and transform are now filled in by default if you do not supply
38 # them.  However if you supply any namepart directives then you will not
39 # get any defaults at all, so you must supply the full set.  Similarly,
40 # if you supply any transform directives then you must supply the full set.
41
42 # Parsing of track names for the currently playing track, the recently
43 # played list and the queue.
44 #namepart  title   "/([0-9]+:)?([^/]+)\\.[a-zA-Z0-9]+$"     "$2"      display
45 #namepart  title   "/([^/]+)\\.[a-zA-Z0-9]+$"               "$1"      sort
46 #namepart  album   "/([^/]+)/[^/]+$"                        "$1"      *
47 #namepart  artist  "/([^/]+)/[^/]+/[^/]+$"                  "$1"      *
48 # used in alias construction
49 #namepart  ext     "(\\.[a-zA-Z0-9]+)$"                     "$1"      *
50
51 # Transformations of directory and filenames for the track choice screen
52 #transform track   "^.*/([0-9]+:)?([^/]+)\\.[a-zA-Z0-9]+$"  "$2"      display
53 #transform track   "^.*/([^/]+)\\.[a-zA-Z0-9]+$"            "$1"      sort
54
55 #transform dir     "^.*/([^/]+)$"                           "$1"      *
56 #transform dir     "^(the) ([^/]*)"                         "$2, $1"  sort    i
57 #transform dir     "[[:punct:]]"                            ""        sort    g