X-Git-Url: https://git.kaliko.me/?a=blobdiff_plain;f=sima%2Fclient.py;fp=sima%2Fclient.py;h=e171c0b1d6c1934d728470e649b06c104e486992;hb=73405cb1d2bbeac4bdd956b9746a1e8a3b7355d7;hp=926e2952acc5a9c177d8b622f01bb4d620935217;hpb=0c911454ac7f8377003a5f0d90244aa3f06b2695;p=mpd-sima.git diff --git a/sima/client.py b/sima/client.py index 926e295..e171c0b 100644 --- a/sima/client.py +++ b/sima/client.py @@ -159,8 +159,8 @@ class PlayerClient(Player): else: self.log.info('Player: Initialising cache!') self._cache = { - 'artists': None, - 'nombid_artists': None, + 'artists': frozenset(), + 'nombid_artists': frozenset(), } self._cache['artists'] = frozenset(self._execute('list', ['artist'])) if Artist.use_mbid: @@ -336,7 +336,7 @@ class PlayerClient(Player): @property def artists(self): - return self._cache.get('artists') | self._cache.get('nombid_artists') + return self._cache.get('artists') @property def state(self):