You've already forked RadioPlayer
mirror of
https://github.com/radio95-rnt/RadioPlayer.git
synced 2026-02-26 13:52:00 +01:00
13 lines
438 B
Python
13 lines
438 B
Python
import random
|
|
|
|
class PlaylistModifierModule:
|
|
def modify(self, global_args: dict, playlist: list[tuple[str, bool, bool, bool, dict]]):
|
|
return playlist
|
|
|
|
class Module(PlaylistModifierModule):
|
|
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)
|
|
return playlist
|
|
|
|
playlistmod = (Module(), 0) |