X-Git-Url: https://git.kaliko.me/?a=blobdiff_plain;f=sima%2Fplugins%2Finternal%2Flastfm.py;fp=sima%2Fplugins%2Finternal%2Flastfm.py;h=280519729bbafec13de7aff60f7ea5fc20514169;hb=cfe6dafed6e43714316c39c401475ed840e66a02;hp=125f0090291655dc60656998b5a541a36869e6cd;hpb=93ad5efaffc6e4fd9476513ee16386e21ea4049d;p=mpd-sima.git diff --git a/sima/plugins/internal/lastfm.py b/sima/plugins/internal/lastfm.py index 125f009..2805197 100644 --- a/sima/plugins/internal/lastfm.py +++ b/sima/plugins/internal/lastfm.py @@ -30,6 +30,7 @@ from os.path import join from ...lib.simafm import SimaFM from ...lib.webserv import WebService from ...lib.cache import FileCache +from ...lib.http import CacheController class Lastfm(WebService): @@ -42,6 +43,7 @@ class Lastfm(WebService): vardir = daemon.config['sima']['var_dir'] persitent_cache = daemon.config.getboolean('lastfm', 'cache') if persitent_cache: + CacheController.CACHE_ANYWAY = True self.log.debug('Persistant cache enabled in {}'.format(join(vardir, 'http', 'LastFM'))) SimaFM.cache = FileCache(join(vardir, 'http', 'LastFM')) self.ws = SimaFM()