0
1
mirror of https://github.com/radio95-rnt/RadioPlayer.git synced 2026-02-26 21:53:54 +01:00
Files
RadioPlayer/modules/shuffler.py
2025-11-02 10:31:02 +01:00

10 lines
290 B
Python

import random
from . import PlaylistModifierModule, Track
class Module(PlaylistModifierModule):
def modify(self, global_args: dict, playlist: list[Track]):
if int(global_args.get("no_shuffle", 0)) == 0: random.shuffle(playlist)
return None
playlistmod = (Module(), 0)