From 5595804ad7bc2eeb15db93efc129bf21d9a3cc77 Mon Sep 17 00:00:00 2001 From: kaliko Date: Fri, 19 Feb 2021 18:38:44 +0100 Subject: [PATCH] Fixed previous commit, cannot apply shuffle on MetaContainer --- sima/plugins/internal/tags.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sima/plugins/internal/tags.py b/sima/plugins/internal/tags.py index 3b7ffb0..01a3125 100644 --- a/sima/plugins/internal/tags.py +++ b/sima/plugins/internal/tags.py @@ -115,8 +115,9 @@ class Tags(AdvancedPlugin): queue_mode = self.plugin_conf.get('queue_mode', 'track') 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)]) + artists = [Artist(name=a) for a in self.player.list('artist', self.mpd_filter)] random.shuffle(artists) + artists = MetaContainer(artists) if not artists: self.log.info('Tags plugin found nothing to queue') return candidates -- 2.39.5