"""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):
titles = [t for t in self.ws.get_toptrack(artist)]
except WSError as err:
self.log.warning('%s: %s', self.ws.name, err)
+ continue
for trk in titles:
found = self.player.search_track(artist, trk.title)
if found: