]> kaliko git repositories - mpd-sima.git/commitdiff
Fixed MPD client (issue when no albumartist is set)
authorkaliko <kaliko@azylum.org>
Mon, 11 May 2020 17:21:14 +0000 (19:21 +0200)
committerkaliko <kaliko@azylum.org>
Mon, 11 May 2020 17:21:14 +0000 (19:21 +0200)
sima/mpdclient.py

index a0dbfdfa9332ad00b9717dab960f4f6bacf465aa..9b8df6a18d42e474949d7dc268f55d1fbe698a89 100644 (file)
@@ -442,7 +442,7 @@ class MPD(MPDClient):
                 if 'Various Artists' in [tr.albumartist for tr in album_trks]:
                     self.log.debug('Discarding %s ("Various Artists" set)', album)
                     continue
-                if name not in album_artists:
+                if album_artists and name not in album_artists:
                     self.log.debug('Discarding "%s", "%s" not set as albumartist', album, name)
                     continue
                 arts = {trk.artist for trk in album_trks}