]> kaliko git repositories - mpd-sima.git/commitdiff
Minor log message enhancement
authorkaliko <efrim@azylum.org>
Mon, 23 Dec 2013 16:51:20 +0000 (17:51 +0100)
committerkaliko <efrim@azylum.org>
Mon, 23 Dec 2013 16:51:20 +0000 (17:51 +0100)
sima/client.py

index cbd564b2fe2ee242cf92e4c94475dba25a3c653e..b3c9591e28b7d949885d05ff68feac0a95a7c28f 100644 (file)
@@ -227,7 +227,7 @@ class PlayerClient(Player):
             if len(arts) < 2:  # TODO: better heuristic, use a ratio instead
                 if album not in albums:
                     albums.append(Album(name=album, albumartist=artist))
-            elif album not in albums:
+            elif (album and album not in albums):
                 self.log.debug('"{0}" probably not an album of "{1}"'.format(
                                album, artist) + '({0})'.format('/'.join(arts)))
         return albums