From: kaliko Date: Wed, 11 Feb 2015 22:47:32 +0000 (+0100) Subject: Fix artists cache initialising (thanks mathieui) X-Git-Tag: 0.14.0~16 X-Git-Url: https://git.kaliko.me/?a=commitdiff_plain;h=73405cb1d2bbeac4bdd956b9746a1e8a3b7355d7;p=mpd-sima.git Fix artists cache initialising (thanks mathieui) --- 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):