mirror of
https://github.com/radio95-rnt/RadioPlayer.git
synced 2026-07-30 07:49:18 +02:00
extend correctly
This commit is contained in:
+3
-3
@@ -35,7 +35,7 @@ class ActiveModifier:
|
||||
"""
|
||||
This changes the next song to be played live, which means that this picks the next song, not the playlist, but this is affected by the playlist
|
||||
"""
|
||||
def play(self, index:int, track: tuple[str, bool, bool, bool, dict[str, str]]): return track
|
||||
def play(self, index:int, track: tuple[str, bool, bool, bool, dict[str, str]]): return track, False
|
||||
def on_new_playlist(self, playlist: list[tuple[str, bool, bool, bool, dict[str, str]]]): pass
|
||||
|
||||
simple_modules: list[PlayerModule] = []
|
||||
@@ -229,9 +229,9 @@ def play_playlist(playlist_path):
|
||||
|
||||
track_tuple = playlist[i]
|
||||
if active_modifier:
|
||||
track_tuple = active_modifier.play(i, track_tuple)
|
||||
track_tuple, to_max = active_modifier.play(i, track_tuple)
|
||||
modified = True
|
||||
max_iterator += 1
|
||||
if to_max: max_iterator += 1
|
||||
else: modified = False
|
||||
track, to_fade_in, to_fade_out, official, args = track_tuple
|
||||
|
||||
|
||||
Reference in New Issue
Block a user