]> kaliko git repositories - mpd-sima.git/commitdiff
Better non MBID set up integration
authorkaliko <kaliko@azylum.org>
Mon, 2 Feb 2015 23:32:33 +0000 (00:32 +0100)
committerkaliko <kaliko@azylum.org>
Mon, 2 Feb 2015 23:32:33 +0000 (00:32 +0100)
sima/client.py

index 667242cc7ab569a4cb94792e26550a8de4e5526c..63c2632c85910bb8582df793953b204e69361146 100644 (file)
@@ -163,7 +163,8 @@ class PlayerClient(Player):
                 'nombid_artists': None,
                 }
         self._cache['artists'] = frozenset(self._client.list('artist'))
-        self._cache['nombid_artists'] = frozenset(self._client.list('artist', 'musicbrainz_artistid', ''))
+        if Artist.use_mbid:
+            self._cache['nombid_artists'] = frozenset(self._client.list('artist', 'musicbrainz_artistid', ''))
 
     @blacklist(track=True)
     def find_track(self, artist, title=None):