'sima': {
'internal': "Crop, Lastfm, Random",
'contrib': "",
- 'user_db': "false",
+ 'user_db': False,
'history_duration': 8,
'queue_length': 2,
'var_dir': 'empty',
- 'musicbrainzid': "true",
- 'repeat_disable_queue': "true",
- 'single_disable_queue': "true",
- 'mopidy_compat': "false",
+ 'musicbrainzid': True,
+ 'repeat_disable_queue': True,
+ 'single_disable_queue': True,
+ 'mopidy_compat': False,
},
'daemon': {
'daemon': False,
'lastfm': {
'queue_mode': "track", # TODO control values
'max_art': 10,
- 'single_album': "false",
+ 'single_album': False,
'track_to_add': 1,
'album_to_add': 1,
'shuffle_album': False,
'originaldate': "",
'filter': "",
'queue_mode': "track",
- 'single_album': "false",
+ 'single_album': False,
'track_to_add': 1,
'album_to_add': 1,
'priority': 80,
},
'genre': {
'queue_mode': "track",
- 'single_album': "false",
+ 'single_album': False,
'track_to_add': 1,
'album_to_add': 1,
'priority': 80,
pass
elif environ.get('XDG_CONFIG_HOME'):
conf_dir = join(environ.get('XDG_CONFIG_HOME'), DIRNAME)
+ self.conf_file = join(conf_dir, CONF_FILE)
elif homedir and isdir(homedir) and homedir not in ['/']:
conf_dir = join(homedir, '.config', DIRNAME)
self.conf_file = join(conf_dir, CONF_FILE)
self.log.critical('Please use "--config" to locate the conf file')
sys.exit(1)
- ## Sima sqlite DB
+ # Sima sqlite DB
self.config['sima']['var_dir'] = join(data_dir)
# If no conf file present, uses defaults