]> kaliko git repositories - mpd-sima.git/commitdiff
Fixed type discrepancy in album search
authorkaliko <kaliko@azylum.org>
Wed, 7 Jan 2015 17:11:36 +0000 (18:11 +0100)
committerkaliko <kaliko@azylum.org>
Wed, 7 Jan 2015 17:11:36 +0000 (18:11 +0100)
sima/client.py

index 0a7f754bfdb03dfeb47de52bb16647f1e0409714..667242cc7ab569a4cb94792e26550a8de4e5526c 100644 (file)
@@ -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)))