add no stop script

This commit is contained in:
Ghost 2024-03-20 08:24:13 +01:00
parent f1ed9cf664
commit 5e119df765

11
run.py
View File

@ -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