From a41598a8cf1b5d8aa2e65d15a866e684e70e0ef3 Mon Sep 17 00:00:00 2001 From: KubaPro010 Date: Mon, 1 Sep 2025 10:13:19 +0200 Subject: [PATCH] now? --- radioPlayer.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/radioPlayer.py b/radioPlayer.py index 7c934e8..d07a3cc 100644 --- a/radioPlayer.py +++ b/radioPlayer.py @@ -378,9 +378,8 @@ def play_playlist(playlist_path, custom_playlist: bool=False, play_newest_first= current_modified_time = get_playlist_modification_time(playlist_path) if current_modified_time > last_modified_time: logger.info(f"Playlist {playlist_path} has been modified, reloading...") - stop_all_processes() - clear_current_state() - return + return_pending = True + continue current_hour = get_current_hour() current_day = get_current_day() @@ -406,7 +405,7 @@ def play_playlist(playlist_path, custom_playlist: bool=False, play_newest_first= logger.info("Time changed to night hours, switching playlist...") return_pending = True - if return_pending and not current_process: return + if return_pending and not current_process: continue if current_process: time.sleep(cross_for_cross_time)