mirror of
https://github.com/radio95-rnt/RadioPlayer.git
synced 2026-07-29 15:29:14 +02:00
add a radio player arg
This commit is contained in:
+10
-1
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user