From abe60f3bc183bc888f5aae08f95c1f76eb19d3da Mon Sep 17 00:00:00 2001 From: Kuba <132459354+KubaPro010@users.noreply.github.com> Date: Thu, 16 Oct 2025 19:34:02 +0200 Subject: [PATCH] handle no active modifier --- radioPlayer.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/radioPlayer.py b/radioPlayer.py index d6a0428..c978105 100644 --- a/radioPlayer.py +++ b/radioPlayer.py @@ -232,8 +232,10 @@ def play_playlist(playlist_path): if active_modifier: track_tuple, extend = active_modifier.play(song_i, old_track_tuple) logger.debug(repr(song_i), repr(old_track_tuple), repr(track_tuple), repr(old_track_tuple != track_tuple)) - if extend: - max_iterator += 1 + if extend: max_iterator += 1 + else: + extend = False + track_tuple = old_track_tuple track, to_fade_in, to_fade_out, official, args = track_tuple track_path = os.path.abspath(os.path.expanduser(track))