diff options
-rw-r--r-- | sortashuffle.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sortashuffle.py b/sortashuffle.py index 31c57ef..806f2a4 100644 --- a/sortashuffle.py +++ b/sortashuffle.py | |||
@@ -40,7 +40,7 @@ def shuffle(showlist, weightlist): | |||
40 | """Shuffle the playlist.""" | 40 | """Shuffle the playlist.""" |
41 | shuffled = [] | 41 | shuffled = [] |
42 | while any(showlist): | 42 | while any(showlist): |
43 | selection = select_show(showlist, weightlist, previous) | 43 | selection = select_show(showlist, weightlist) |
44 | shuffled.append(SOURCES[selection] + "//" + showlist[selection].pop(0)) | 44 | shuffled.append(SOURCES[selection] + "//" + showlist[selection].pop(0)) |
45 | weightlist[selection] = len(showlist[selection]) | 45 | weightlist[selection] = len(showlist[selection]) |
46 | return shuffled | 46 | return shuffled |