You've already forked RadioPlayer
mirror of
https://github.com/radio95-rnt/RadioPlayer.git
synced 2026-02-26 21:53:54 +01:00
10 lines
290 B
Python
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) |