From f0550def23bc07bba4cfaa55d9e724f9fe7776a9 Mon Sep 17 00:00:00 2001 From: kaliko Date: Mon, 4 Nov 2013 21:43:09 +0100 Subject: [PATCH] Shuffles track to add --- sima/core.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sima/core.py b/sima/core.py index 08135c0..87501e8 100644 --- a/sima/core.py +++ b/sima/core.py @@ -6,6 +6,7 @@ __version__ = '0.12.0.b' __author__ = 'kaliko jack' __url__ = 'git://git.kaliko.me/sima.git' +import random import sys import time @@ -81,6 +82,7 @@ class Sima(Daemon): pl_callback = getattr(plugin, 'callback_need_track_fb')() if pl_callback: to_add.extend(pl_callback) + random.shuffle(to_add) for track in to_add: self.player.add(track) -- 2.39.5