You've already forked RadioPlayer
mirror of
https://github.com/radio95-rnt/RadioPlayer.git
synced 2026-02-26 21:53:54 +01:00
fix
This commit is contained in:
@@ -1,14 +1,10 @@
|
||||
import random, log95
|
||||
|
||||
logger = log95.log95("SHUFFLER")
|
||||
import random
|
||||
|
||||
class PlaylistModifierModule:
|
||||
def modify(self, global_args: dict, playlist: list[tuple[str, bool, bool, bool, dict]]):
|
||||
return playlist
|
||||
|
||||
class Module(PlaylistModifierModule):
|
||||
def __init__(self) -> None:
|
||||
logger.info("Shuffling with the following random state:", repr(random.getstate()))
|
||||
def modify(self, global_args: dict, playlist: list[tuple[str, bool, bool, bool, dict]]):
|
||||
if int(global_args.get("no_shuffle", 0)) == 0:
|
||||
random.shuffle(playlist)
|
||||
|
||||
Reference in New Issue
Block a user