From 59762ca370e8b1dfd1b6279b12c01595a4c76a6d Mon Sep 17 00:00:00 2001 From: KubaPro010 Date: Tue, 29 Jul 2025 19:03:20 +0200 Subject: [PATCH] fix control signals --- radioPlayer.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/radioPlayer.py b/radioPlayer.py index a01a044..9fb6853 100644 --- a/radioPlayer.py +++ b/radioPlayer.py @@ -166,7 +166,8 @@ def play_playlist(playlist_path, custom_playlist: bool=False, play_newest_first= subprocess.run(['ffplay', '-nodisp', '-hide_banner', '-autoexit', '-loglevel', 'quiet', track_path], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL) # Check control files after each song - action = check_control_files() and not can_delete_file("/tmp/radioPlayer_onplaylist") + action = check_control_files() + if not can_delete_file("/tmp/radioPlayer_onplaylist"): action = None if action == "quit": exit() elif action == "reload":