From: kaliko Date: Wed, 20 May 2020 14:10:21 +0000 (+0200) Subject: Fixed regression introduced with 8870413 X-Git-Tag: 0.16.0~29 X-Git-Url: https://git.kaliko.me/?a=commitdiff_plain;h=65c8109daf4b649eb1573cfcff18e1f0687ae22d;p=mpd-sima.git Fixed regression introduced with 8870413 --- diff --git a/sima/lib/webserv.py b/sima/lib/webserv.py index 078f61d..1f75c20 100644 --- a/sima/lib/webserv.py +++ b/sima/lib/webserv.py @@ -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):