mirror of
https://github.com/Arrowar/StreamingCommunity.git
synced 2025-06-07 12:05:35 +00:00
add no stop script
This commit is contained in:
parent
f1ed9cf664
commit
5e119df765
11
run.py
11
run.py
@ -13,7 +13,7 @@ from Src.Lib.FFmpeg.installer import check_ffmpeg
|
|||||||
# Import
|
# Import
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
def initialize() -> None:
|
def initialize():
|
||||||
"""
|
"""
|
||||||
Initializes the application by performing necessary setup tasks.
|
Initializes the application by performing necessary setup tasks.
|
||||||
"""
|
"""
|
||||||
@ -38,7 +38,7 @@ def initialize() -> None:
|
|||||||
print("\n")
|
print("\n")
|
||||||
|
|
||||||
|
|
||||||
def main() -> None:
|
def main():
|
||||||
"""
|
"""
|
||||||
Main function to execute the application logic.
|
Main function to execute the application logic.
|
||||||
"""
|
"""
|
||||||
@ -114,4 +114,11 @@ def main() -> None:
|
|||||||
console.print("[red]Done!")
|
console.print("[red]Done!")
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
|
||||||
|
while 1:
|
||||||
|
cmd_insert = input("Quit the script [yes/no]: ")
|
||||||
|
|
||||||
|
if cmd_insert == "y" or cmd_insert == "yes":
|
||||||
main()
|
main()
|
||||||
|
else:
|
||||||
|
break
|
||||||
|
Loading…
x
Reference in New Issue
Block a user