From 8818d7f62438508ec8087b6c9920d38af4f06d3f Mon Sep 17 00:00:00 2001 From: Morgan Barber Date: Fri, 10 May 2024 17:57:29 +0000 Subject: [PATCH] Commands override settings --- main.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/main.py b/main.py index 484fab8..b001d27 100755 --- a/main.py +++ b/main.py @@ -95,6 +95,13 @@ if __name__ == "__main__": sys.exit() ffmpeg_install() directory = Path().absolute() + if args.post_id: + main(args.post_id) + elif args.run_many: + run_many(args.run_many) + else: + main() + config = settings.check_toml( f"{directory}/utils/.config.template.toml", f"{directory}/config.toml" ) @@ -120,12 +127,6 @@ if __name__ == "__main__": Popen("cls" if name == "nt" else "clear", shell=True).wait() elif config["settings"]["times_to_run"]: run_many(config["settings"]["times_to_run"]) - if args.post_id: - main(args.post_id) - elif args.run_many: - run_many(args.run_many) - else: - main() except KeyboardInterrupt: shutdown() except ResponseException: