From: kaliko Date: Mon, 23 Dec 2013 16:51:20 +0000 (+0100) Subject: Minor log message enhancement X-Git-Tag: mpd-sima/0.12.0pr2~3 X-Git-Url: https://git.kaliko.me/?a=commitdiff_plain;h=02644ed407ef89aa5fadee5344f62216572c7588;p=mpd-sima.git Minor log message enhancement --- diff --git a/sima/client.py b/sima/client.py index cbd564b..b3c9591 100644 --- a/sima/client.py +++ b/sima/client.py @@ -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