From 65c8109daf4b649eb1573cfcff18e1f0687ae22d Mon Sep 17 00:00:00 2001 From: kaliko Date: Wed, 20 May 2020 16:10:21 +0200 Subject: [PATCH] Fixed regression introduced with 8870413 --- sima/lib/webserv.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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): -- 2.39.5