From d6dadb1d86ae2e9082d45f1f5fda2f8152ae2f8a Mon Sep 17 00:00:00 2001 From: kaliko Date: Wed, 10 Dec 2014 15:42:12 +0100 Subject: [PATCH] Fixed search_albums --- sima/client.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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: -- 2.39.5