From: kaliko Date: Wed, 7 Jan 2015 17:11:36 +0000 (+0100) Subject: Fixed type discrepancy in album search X-Git-Tag: 0.13.0~4 X-Git-Url: https://git.kaliko.me/?a=commitdiff_plain;h=04f0d5bd834fc6af4c244b5e212e255e7dac7555;p=mpd-sima.git Fixed type discrepancy in album search --- diff --git a/sima/client.py b/sima/client.py index 0a7f754..667242c 100644 --- a/sima/client.py +++ b/sima/client.py @@ -297,7 +297,7 @@ class PlayerClient(Player): arts = set([trk.artist for trk in album_trks]) if len(set(arts)) < 2: # TODO: better heuristic, use a ratio instead if album not in albums: - albums.append(Album(name=album, albumartist=artist)) + albums.append(Album(name=album, **kwalbart)) elif album and album not in albums: self.log.debug('"{0}" probably not an album of "{1}"'.format( album, artist) + '({0})'.format('/'.join(arts)))