diff --git a/main.py b/main.py index f1607f8..f1d8c89 100644 --- a/main.py +++ b/main.py @@ -45,7 +45,7 @@ def main(subreddit_=None, background=None, filename=None, thread_link_=None): "[bold red] Your .env file is invalid, or was never created. Standby.[/bold red]" ) - console.print("[bold green]Checking environment variables...[/bol green]") + console.print("[bold green]Checking environment variables...[/bold green]") for val in REQUIRED_VALUES: if not os.getenv(val): diff --git a/reddit/subreddit.py b/reddit/subreddit.py index 329b22f..13293df 100644 --- a/reddit/subreddit.py +++ b/reddit/subreddit.py @@ -87,7 +87,7 @@ def get_subreddit_threads(subreddit_, thread_link_): threads = subreddit.hot(limit=25) submission = list(threads)[random.randrange(0, 25)] - print_substep(f"Video will be: {submission.title} :thumbsup:") + print_substep(f"Video will be: [cyan]{submission.title}[/cyan] :thumbsup:") try: content["thread_url"] = submission.url diff --git a/setup_program.py b/setup_program.py index 06a8d60..41cf51b 100644 --- a/setup_program.py +++ b/setup_program.py @@ -43,7 +43,7 @@ def setup(): ) console.print( "[bold]If you don't have these, please follow the instructions in the README.md file to " - + "set them up.\n If you do have these, type yes to continue. If you don't, go ahead and " + + "set them up.\nIf you do have these, type yes to continue. If you don't, go ahead and " + "grab those quickly and come back.[/bold]" ) diff --git a/video_creation/screenshot_downloader.py b/video_creation/screenshot_downloader.py index 136deda..18fe5c5 100644 --- a/video_creation/screenshot_downloader.py +++ b/video_creation/screenshot_downloader.py @@ -19,9 +19,8 @@ def download_screenshots_of_reddit_posts(reddit_object, screenshot_num, theme): # ! Make sure the reddit screenshots folder exists Path("assets/png").mkdir(parents=True, exist_ok=True) + print_substep("Launching Headless Browser...") with sync_playwright() as browser_: - print_substep("Launching Headless Browser...") - browser = browser_.chromium.launch() context = browser.new_context()