From a59393c99fc2b582dc31371d1e0b86275103d0dc Mon Sep 17 00:00:00 2001 From: Simon Woker Date: Thu, 11 Aug 2022 09:53:14 +0200 Subject: [PATCH 1/2] update version and check for post_ids first --- main.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/main.py b/main.py index cddcdb2..9a13a39 100755 --- a/main.py +++ b/main.py @@ -21,7 +21,7 @@ from video_creation.final_video import make_final_video from video_creation.screenshot_downloader import download_screenshots_of_reddit_posts from video_creation.voices import save_text_to_mp3 -__VERSION__ = "2.4.1" +__VERSION__ = "2.4.3" print( """ @@ -80,10 +80,7 @@ if __name__ == "__main__": config = settings.check_toml("utils/.config.template.toml", "config.toml") config is False and exit() try: - if config["settings"]["times_to_run"]: - run_many(config["settings"]["times_to_run"]) - - elif len(config["reddit"]["thread"]["post_id"].split("+")) > 1: + if len(config["reddit"]["thread"]["post_id"].split("+")) > 1: for index, post_id in enumerate(config["reddit"]["thread"]["post_id"].split("+")): index += 1 print_step( @@ -91,6 +88,8 @@ if __name__ == "__main__": ) main(post_id) Popen("cls" if name == "nt" else "clear", shell=True).wait() + elif config["settings"]["times_to_run"]: + run_many(config["settings"]["times_to_run"]) else: main() except KeyboardInterrupt: From 6513e8aac026fac470977ec445af9f9c67d05f1f Mon Sep 17 00:00:00 2001 From: Simon Woker Date: Thu, 11 Aug 2022 10:04:19 +0200 Subject: [PATCH 2/2] fix version --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 9a13a39..2937c4d 100755 --- a/main.py +++ b/main.py @@ -21,7 +21,7 @@ from video_creation.final_video import make_final_video from video_creation.screenshot_downloader import download_screenshots_of_reddit_posts from video_creation.voices import save_text_to_mp3 -__VERSION__ = "2.4.3" +__VERSION__ = "2.4.2" print( """