From 73405cb1d2bbeac4bdd956b9746a1e8a3b7355d7 Mon Sep 17 00:00:00 2001 From: kaliko Date: Wed, 11 Feb 2015 23:47:32 +0100 Subject: [PATCH] Fix artists cache initialising (thanks mathieui) --- sima/client.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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): -- 2.39.2