X-Git-Url: https://git.kaliko.me/?a=blobdiff_plain;f=sima%2Fplugins%2Flastfm.py;h=935ddf8223e0288225744f1ea50afcc9202340e4;hb=cf16a8a97327e008ccbd728b8c0eaf2e91c186c7;hp=0bbddbd33f0e8ae8b767692877a1cdc0fb8e1715;hpb=7e22b0509fedf7deb29b8c4f46b2222d42393d84;p=mpd-sima.git diff --git a/sima/plugins/lastfm.py b/sima/plugins/lastfm.py index 0bbddbd..935ddf8 100644 --- a/sima/plugins/lastfm.py +++ b/sima/plugins/lastfm.py @@ -73,7 +73,6 @@ class Lastfm(Plugin): def _cleanup_cache(self): """Avoid bloated cache """ - # TODO: call cleanup once its dict instance are used somewhere XXX for _ , val in self._cache.items(): if isinstance(val, dict): while len(val) > 150: @@ -238,7 +237,7 @@ class Lastfm(Plugin): self.log.debug('Trying to find titles to add for "{}"'.format( artist)) found = self.player.find_track(artist) - # find tracks not in history + # find tracks not in history for artist self.filter_track(found) if len(self.to_add) == nbtracks_target: break