From: kaliko Date: Wed, 10 Dec 2014 14:42:12 +0000 (+0100) Subject: Fixed search_albums X-Git-Tag: 0.13.0~13 X-Git-Url: https://git.kaliko.me/?a=commitdiff_plain;h=d6dadb1d86ae2e9082d45f1f5fda2f8152ae2f8a;p=mpd-sima.git Fixed search_albums --- diff --git a/sima/client.py b/sima/client.py index 2893d9b..f3d1614 100644 --- a/sima/client.py +++ b/sima/client.py @@ -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: