mirror of
https://github.com/radio95-rnt/RadioPlayer.git
synced 2026-07-30 15:59:16 +02:00
more random?
This commit is contained in:
+1
-2
@@ -239,7 +239,7 @@ def play_playlist(playlist_path, custom_playlist: bool=False, do_shuffle=True):
|
||||
|
||||
if do_shuffle:
|
||||
random.seed()
|
||||
random.shuffle(lines)
|
||||
for _ in range(random.randrange(1,10)): random.shuffle(lines)
|
||||
|
||||
playlist: list[tuple[str, bool, bool, bool]] = [] # name, fade in, fade out, official
|
||||
last_jingiel = True
|
||||
@@ -256,7 +256,6 @@ def play_playlist(playlist_path, custom_playlist: bool=False, do_shuffle=True):
|
||||
last_jingiel = False
|
||||
del last_jingiel
|
||||
|
||||
|
||||
return_pending = False
|
||||
|
||||
for i, (track, to_fade_in, to_fade_out, official) in enumerate(playlist):
|
||||
|
||||
Reference in New Issue
Block a user