From 346e6d1b7a710ee401a03749f22ed8ac4146661d Mon Sep 17 00:00:00 2001 From: kaliko Date: Thu, 26 Jun 2014 13:17:41 +0200 Subject: [PATCH] Add random.shuffle to track list --- sima/lib/webserv.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sima/lib/webserv.py b/sima/lib/webserv.py index 5e78785..30a7eac 100644 --- a/sima/lib/webserv.py +++ b/sima/lib/webserv.py @@ -326,6 +326,7 @@ class WebService(Plugin): self.log.info('{0.name} ratelimit: {0.ratelimit}'.format(self.ws)) for trk in titles: found = self.player.fuzzy_find_track(artist.name, trk.title) + random.shuffle(found) if found: self.log.debug('{0}'.format(found[0])) if self.filter_track(found): @@ -340,6 +341,7 @@ class WebService(Plugin): self.log.debug('Trying to find titles to add for "{}"'.format( artist)) found = self.player.find_track(artist) + random.shuffle(found) if not found: self.log.debug('Found nothing to queue for {0}'.format(artist)) continue -- 2.39.5