X-Git-Url: https://git.kaliko.me/?a=blobdiff_plain;f=sima%2Futils%2Fconfig.py;h=e9da8f8f4c245f72b38a27f58f4e97df654c0002;hb=c2a85357ef6b87bee0d14303af99ec3be3832e48;hp=157d7c3c341ce7cea04a47aa54e3ba468b30c608;hpb=3ee55407f08ca20a37ca008822283682d2ba58f9;p=mpd-sima.git diff --git a/sima/utils/config.py b/sima/utils/config.py index 157d7c3..e9da8f8 100644 --- a/sima/utils/config.py +++ b/sima/utils/config.py @@ -60,6 +60,9 @@ DEFAULT_CONF = { 'verbosity': "info", 'logfile': "", }, + 'crop': { + 'consume': 10, + }, 'echonest': { 'queue_mode': "track", #TODO control values 'max_art': 15, @@ -75,6 +78,7 @@ DEFAULT_CONF = { 'track_to_add': 1, 'album_to_add': 1, 'depth': 1, + 'cache': True, }, 'randomfallback': { 'flavour': "sensible", # in pure, sensible @@ -115,6 +119,8 @@ class ConfMan(object): # CONFIG MANAGER CLASS ## INIT CALLS self.init_config() self.supersedes_config_with_cmd_line_options() + # generate dbfile + self.config['sima']['db_file'] = join(self.config['sima']['var_dir'], 'sima.db') def get_pw(self): try: @@ -204,7 +210,6 @@ class ConfMan(object): # CONFIG MANAGER CLASS ## Sima sqlite DB self.config['sima']['var_dir'] = join(data_dir) - self.config['sima']['db_file'] = join(data_dir, 'sima.db') # If no conf file present, uses defaults if not isfile(self.conf_file):