From 5b4f8d0a0ded3e311d1860524dcf8fc7004e2dd8 Mon Sep 17 00:00:00 2001 From: iaacornus Date: Sun, 5 Jun 2022 11:37:02 +0800 Subject: [PATCH] little fixes --- main.py | 6 +++--- video_creation/final_video.py | 1 - 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/main.py b/main.py index 980a6b2..36e1c1c 100644 --- a/main.py +++ b/main.py @@ -9,7 +9,7 @@ from video_creation.voices import save_text_to_mp3 from video_creation.screenshot_downloader import download_screenshots_of_reddit_posts from video_creation.final_video import make_final_video -from utils.console import print_markdown +from utils.console import print_markdown, print_substep def main(subreddit_=None, background=None): @@ -24,7 +24,7 @@ def main(subreddit_=None, background=None): print_markdown( "### Thanks for using this tool! [Feel free to contribute to this project on " + "GitHub!](https://lewismenelaws.com) If you have any questions, feel free to" - + "reach out to me on Twitter or submit a GitHub issue." + + " reach out to me on Twitter or submit a GitHub issue." ) configured = True @@ -36,7 +36,7 @@ def main(subreddit_=None, background=None): for val in REQUIRED_VALUES: if not os.getenv(val): - print(f"Please set the variable \"{val}\" in your .env file.") + print_substep(f"Please set the variable \"{val}\" in your .env file.", style="bold red") configured = False if configured: diff --git a/video_creation/final_video.py b/video_creation/final_video.py index 0e18d28..b3f9ae2 100644 --- a/video_creation/final_video.py +++ b/video_creation/final_video.py @@ -20,7 +20,6 @@ W, H = 1080, 1920 def make_final_video(number_of_clips): - # Calls opacity from the .env load_dotenv() print_step("Creating the final video...")