From 5e119df76527fc1fe8b62ad05de9170ae8af002a Mon Sep 17 00:00:00 2001 From: Ghost <62809003+Ghost6446@users.noreply.github.com> Date: Wed, 20 Mar 2024 08:24:13 +0100 Subject: [PATCH] add no stop script --- run.py | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/run.py b/run.py index cd7f40d..de016dd 100644 --- a/run.py +++ b/run.py @@ -13,7 +13,7 @@ from Src.Lib.FFmpeg.installer import check_ffmpeg # Import import sys -def initialize() -> None: +def initialize(): """ Initializes the application by performing necessary setup tasks. """ @@ -38,7 +38,7 @@ def initialize() -> None: print("\n") -def main() -> None: +def main(): """ Main function to execute the application logic. """ @@ -114,4 +114,11 @@ def main() -> None: console.print("[red]Done!") if __name__ == '__main__': - main() + + while 1: + cmd_insert = input("Quit the script [yes/no]: ") + + if cmd_insert == "y" or cmd_insert == "yes": + main() + else: + break