* More robust MPD client
* Fixed top track mode
* Fixed default conf file name (back to mpd_sima.cfg)
+ * Fixed http cache for lastFM
* Cleanup code (removed users similarities)
-- kaliko jack <kaliko@azylum.org> UNRELEASED
self.forever = forever
if not os.path.isdir(self.directory):
- os.makedirs(self.directory)
+ os.makedirs(self.directory, mode=0o755)
def encode(self, val):
return md5(val.encode('utf-8')).hexdigest()
def __init__(self, daemon):
WebService.__init__(self, daemon)
- self.ws = SimaFM()
# Set persitent cache
vardir = daemon.config['sima']['var_dir']
persitent_cache = daemon.config.getboolean('lastfm', 'cache')
if persitent_cache:
+ self.log.debug('Persistant cache enabled in {}'.format(join(vardir, 'http', 'LastFM')))
SimaFM.cache = FileCache(join(vardir, 'http', 'LastFM'))
- else:
- SimaFM.cache = DictCache()
+ self.ws = SimaFM()
# VIM MODLINE