mirror of
https://github.com/radio95-rnt/RadioPlayer.git
synced 2026-08-01 00:39:17 +02:00
disable ffplay output
This commit is contained in:
+3
-2
@@ -145,7 +145,8 @@ def play_playlist(playlist_path, play_newest_first=False):
|
|||||||
print(f"Now playing: {track_name}")
|
print(f"Now playing: {track_name}")
|
||||||
update_rds(track_name)
|
update_rds(track_name)
|
||||||
|
|
||||||
subprocess.run(['ffplay', '-nodisp', '-stats', '-hide_banner', '-autoexit', track_path])
|
subprocess.run(['ffplay', '-nodisp', '-hide_banner', '-autoexit', '-loglevel', 'quiet', track_path], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
|
||||||
|
|
||||||
if can_delete_file("/tmp/radioPlayer_quit"):
|
if can_delete_file("/tmp/radioPlayer_quit"):
|
||||||
os.remove("/tmp/radioPlayer_quit")
|
os.remove("/tmp/radioPlayer_quit")
|
||||||
exit()
|
exit()
|
||||||
@@ -184,7 +185,7 @@ def main():
|
|||||||
track_name = os.path.basename(pre_track_path)
|
track_name = os.path.basename(pre_track_path)
|
||||||
print(f"Now playing: {track_name}")
|
print(f"Now playing: {track_name}")
|
||||||
update_rds(track_name)
|
update_rds(track_name)
|
||||||
subprocess.run(['ffplay', '-nodisp', '-stats', '-hide_banner', '-autoexit', pre_track_path])
|
subprocess.run(['ffplay', '-nodisp', '-hide_banner', '-autoexit', '-loglevel', 'quiet', pre_track_path], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
|
||||||
if can_delete_file("/tmp/radioPlayer_quit"):
|
if can_delete_file("/tmp/radioPlayer_quit"):
|
||||||
os.remove("/tmp/radioPlayer_quit")
|
os.remove("/tmp/radioPlayer_quit")
|
||||||
exit()
|
exit()
|
||||||
|
|||||||
Reference in New Issue
Block a user