self.log.warning('Bad value for flavour, '
'"%s" not in ["pure", "sensible"]', self.mode)
self.mode = 'pure'
+ self.log.debug('Random flavour: %s', self.mode)
def get_played_artist(self,):
"""Constructs list of already played artists.
played_art = self.get_played_artist()
while artists:
art = random.choice(artists)
+ if self.daemon.sdb.get_bl_artist(art, add_not=True):
+ self.log.debug('Random: Blacklisted "%s"', art)
+ continue
if art not in played_art:
break
artists.pop(art)