]> kaliko git repositories - mpd-sima.git/commitdiff
Fixed regression introduced with 8870413
authorkaliko <kaliko@azylum.org>
Wed, 20 May 2020 14:10:21 +0000 (16:10 +0200)
committerkaliko <kaliko@azylum.org>
Wed, 20 May 2020 14:10:21 +0000 (16:10 +0200)
sima/lib/webserv.py

index 078f61d158bfb302ad5d8eb0aceab0239c24303c..1f75c2000235919dd49c093be9f1a0c8bfa4ccbc 100644 (file)
@@ -303,7 +303,9 @@ class WebService(Plugin):
         """Retrieve album history"""
         albums_list = set()
         for trk in self.get_history(artist=artist.name):
-            albums_list.add(trk[1])
+            if not trk.album:
+                continue
+            albums_list.add(trk.album)
         return albums_list
 
     def find_album(self, artists):