From 003af57704ae70fbce8f2c2f08682bcfc8907e94 Mon Sep 17 00:00:00 2001 From: HallowedDust5 Date: Thu, 30 Jun 2022 03:14:57 -0400 Subject: [PATCH] Fixed minor bug changes --- main.py | 2 +- reddit/subreddit.py | 1 + video_creation/screenshot_downloader.py | 2 ++ 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index 326654a..55708c4 100755 --- a/main.py +++ b/main.py @@ -51,7 +51,7 @@ def main( ) - length, number_of_comments = save_text_to_mp3(reddit_object) + length, number_of_comments = save_text_to_mp3(reddit_object) download_screenshots_of_reddit_posts(reddit_object, number_of_comments) download_background(background) chop_background_video(length) diff --git a/reddit/subreddit.py b/reddit/subreddit.py index 5270ae7..50fc571 100644 --- a/reddit/subreddit.py +++ b/reddit/subreddit.py @@ -9,6 +9,7 @@ import random import os import re from os import getenv +from os import environ import praw from praw.models import MoreComments diff --git a/video_creation/screenshot_downloader.py b/video_creation/screenshot_downloader.py index e3d96b2..986ac63 100644 --- a/video_creation/screenshot_downloader.py +++ b/video_creation/screenshot_downloader.py @@ -24,6 +24,8 @@ from utils.console import print_step, print_substep storymode = False +console = Console() + def download_screenshots_of_reddit_posts(reddit_object: dict[str], screenshot_num: int): """Downloads screenshots of reddit posts as seen on the web. Downloads to assets/temp/png