MPD_sima v0.16.2.dev0
+ * Add randomness in Tags plugin artist selection
* Fixed issue with un-tagged titles (closes #40)
* Fixed "artist with quotes not found" (closes #41)
"""
# standard library import
+import random
# third parties components
from musicpd import CommandError
target = self.plugin_conf.getint(f'{queue_mode}_to_add')
# look for artists acording to filter
artists = MetaContainer([Artist(name=a) for a in self.player.list('artist', self.mpd_filter)])
+ random.shuffle(artists)
if not artists:
self.log.info('Tags plugin found nothing to queue')
return candidates