You've already forked RadioPlayer
mirror of
https://github.com/radio95-rnt/RadioPlayer.git
synced 2026-02-27 06:03:52 +01:00
fix control signals
This commit is contained in:
@@ -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)
|
subprocess.run(['ffplay', '-nodisp', '-hide_banner', '-autoexit', '-loglevel', 'quiet', track_path], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
|
||||||
|
|
||||||
# Check control files after each song
|
# 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":
|
if action == "quit":
|
||||||
exit()
|
exit()
|
||||||
elif action == "reload":
|
elif action == "reload":
|
||||||
|
|||||||
Reference in New Issue
Block a user