def _get_album_history(self, artist):
"""Retrieve album history"""
- duration = self.daemon_conf.getint('sima', 'history_duration')
albums_list = set()
- for trk in self.sdb.get_history(artist=artist.name, duration=duration):
- albums_list.add(trk[1])
+ for trk in self.get_history(artist=artist.name):
+ 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: