-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.rb
55 lines (46 loc) · 1.85 KB
/
config.rb
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
#MPDr Configuration
$config = Hash.new
#Location of MPD server
$config[:host] = 'localhost'
#Port
$config[:port] = 6600
#Where your music library is, needed for streaming (do not add trailing /)
$config[:mdir] = '/exthd/jeff/Music'
#Where the root of the client can be found over HTTP. (do not add trailing /)
#Make sure that any computer that will be using it can access it on this url.
$config[:httpAddr] = 'http://192.168.1.134/~mpdr'
#Playlist view columns
## Headers
$config[:plHeaders] = [
'#', 'Title', 'Artist', 'Album', ''
]
## Contents
#Valid options are: artist, composer, track, title, time, id, date, album,
# genre, file, pos & tools
#All are the metadata in the audio file except for:
#id is the unique identification number given by MPD
#file is the filename relative to the root of your music directory
#pos is the position in the playlist, 0 is the first song
#Tools is an extra column with stuff to edit the playlist
#
#Each will be replaced with just the corresponding text, except for title,
#which will include a link to skip to that song
$config[:plContent] = [
'track', 'title', 'artist', 'album', 'tools'
]
#Similarly for browsing files, same options as for playlist
$config[:fbHeaders] = ['Title', 'Artist', 'Year', '']
$config[:fbContent] = ['title', 'artist', 'date', 'tools']
#Volume control
#How much each tick on volume control will increment the volume
$config[:volumeInc] = 10
#Album art display
#Global album art on/off option
$config[:albumArtOn] = true
#Files to look for album art in, searched from first to last
$config[:albumArtFiles] = ['folder.jpg', 'cover.jpg', 'front.jpg', 'cd.jpg']
#Display width of album art
#The whole image will always be sent, but will use HTML to scale the image
$config[:albumArtWidth] = 300
#Words to ignore from the beginning for sorting. Should be entered lowercase
$config[:sortIgnore] = ['the ', 'a ']