]> kaliko git repositories - mpd-sima.git/commitdiff
Fixed search_albums
authorkaliko <kaliko@azylum.org>
Wed, 10 Dec 2014 14:42:12 +0000 (15:42 +0100)
committerkaliko <kaliko@azylum.org>
Wed, 10 Dec 2014 14:42:12 +0000 (15:42 +0100)
sima/client.py

index 2893d9b52cf52bb5a53266ec2bdedc7f0e05ebcd..f3d1614ad6b6672093024feca685604c262d9fba 100644 (file)
@@ -196,8 +196,9 @@ class PlayerClient(Player):
                album containing at least a single track for artist
         """
         albums = []
-        for name in artist.aliases:
-            self.log.debug('Searching album for {}'.format(name))
+        for name in artist.names:
+            if len(artist.names) > 1:
+                self.log.debug('Searching album for aliase: "{}"'.format(name))
             kwalbart = {'albumartist':name, 'artist':name}
             for album in self.list('album', 'albumartist', artist):
                 if album and album not in albums: