X-Git-Url: https://git.kaliko.me/?a=blobdiff_plain;f=sima%2Fplugins%2Finternal%2Flastfm.py;h=613ddc14230d7f4f78119383817da56034fd072d;hb=5155de9f17342ee68f19196d7658751883f4145a;hp=125f0090291655dc60656998b5a541a36869e6cd;hpb=1c01e4a7aa37eeef825c6918fc90b154a7f4ccc7;p=mpd-sima.git diff --git a/sima/plugins/internal/lastfm.py b/sima/plugins/internal/lastfm.py index 125f009..613ddc1 100644 --- a/sima/plugins/internal/lastfm.py +++ b/sima/plugins/internal/lastfm.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright (c) 2013, 2014 Jack Kaliko +# Copyright (c) 2013, 2014 kaliko # # This file is part of sima # @@ -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()