X-Git-Url: https://git.kaliko.me/?a=blobdiff_plain;f=data%2Flist_expired_cache;h=876dbbeef96c765d3459b13e6a1221276e90c3a8;hb=b75a67a8ef2924dbcfdb9838d5b35447baf1e4be;hp=3ebbf3833cbd9e4e5d06a4dbffdcd16d177eb823;hpb=c2a85357ef6b87bee0d14303af99ec3be3832e48;p=mpd-sima.git diff --git a/data/list_expired_cache b/data/list_expired_cache index 3ebbf38..876dbbe 100755 --- a/data/list_expired_cache +++ b/data/list_expired_cache @@ -26,8 +26,6 @@ from os.path import join as pjoin import sima.lib.cache -SERVICE = ('EchoNest', 'LastFM') - def parse_cache_control(headers): """ Parse the cache control headers returning a dictionary with values @@ -53,7 +51,7 @@ def encode(val): homedir = environ.get('HOME') xdh = environ.get('XDG_DATA_HOME', pjoin(homedir, '.local/share/')) -default_cache = pjoin(xdh, 'mpd_sima/http/', SERVICE[1]) +default_cache = pjoin(xdh, 'mpd_sima/http/LastFM') cache = environ.get('SIMA_VARDIR', default_cache) if len(sys.argv) > 1: