]> kaliko git repositories - mpd-sima.git/blobdiff - sima/client.py
New option to disable use of mbid
[mpd-sima.git] / sima / client.py
index d127442e6b79f90209d019c6774c8e5d6c6ad9f5..0bfc8826be36ca0027df7b6df3af3598456527f7 100644 (file)
@@ -317,6 +317,16 @@ class PlayerClient(Player):
                 raise PlayerError('Could connect to "%s", '
                                   'but command "%s" not available' %
                                   (host, nddcmd))
+
+        #  Controls use of MusicBrainzIdentifier
+        if Artist.use_mbid:
+            if 'MUSICBRAINZ_ARTISTID' not in self._client.tagtypes():
+                self.log.warning('Use of MusicBrainzIdentifier is set but MPD is '
+                        'not providing related metadata')
+                self.log.info(self._client.tagtypes())
+        else:
+            self.log.warning('Use of MusicBrainzIdentifier disabled!')
+            self.log.info('Consider using MusicBrainzIdentifier for your music library')
         self._flush_cache()
 
     def disconnect(self):