You've already forked RadioPlayer
mirror of
https://github.com/radio95-rnt/RadioPlayer.git
synced 2026-02-27 06:03:52 +01:00
add a radio player arg
This commit is contained in:
@@ -161,8 +161,17 @@ def main():
|
|||||||
play_newest_first = False
|
play_newest_first = False
|
||||||
pre_track_path = None
|
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:
|
||||||
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
|
play_newest_first = True
|
||||||
print("Newest song will be played first")
|
print("Newest song will be played first")
|
||||||
elif os.path.isfile(arg):
|
elif os.path.isfile(arg):
|
||||||
|
|||||||
Reference in New Issue
Block a user