add a radio player arg

This commit is contained in:
2025-07-06 19:15:05 +02:00
parent 853a85579a
commit af2790b05d
+10 -1
View File
@@ -161,8 +161,17 @@ def main():
play_newest_first = False
pre_track_path = None
if can_delete_file("/tmp/radioPlayer_arg") and not arg:
with open("/tmp/radioPlayer_arg", "r") as f:
arg = f.read()
os.remove("/tmp/radioPlayer_arg")
if arg:
if arg.lower() == "n":
if arg.lower() == "-h":
print("/tmp/radioPlayer_quit")
print("/tmp/radioPlayer_arg")
exit(95)
elif arg.lower() == "n":
play_newest_first = True
print("Newest song will be played first")
elif os.path.isfile(arg):