X-Git-Url: http://git.kaliko.me/?a=blobdiff_plain;f=sima%2Fclient.py;h=e171c0b1d6c1934d728470e649b06c104e486992;hb=d86ba5f99e61ff81ab750aba226df8b8a78dcae5;hp=926e2952acc5a9c177d8b622f01bb4d620935217;hpb=23309f235879380a5ef7db3a51bda4d12e31902e;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):