From a293a9de026067b22b8d136fa329cbea6c96cc1e Mon Sep 17 00:00:00 2001 From: Xpl0itU Date: Wed, 28 Dec 2022 15:09:47 +0100 Subject: [PATCH] Update main.py --- main.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index bb479d5..a89ee5c 100755 --- a/main.py +++ b/main.py @@ -23,6 +23,8 @@ from video_creation.final_video import make_final_video from video_creation.screenshot_downloader import get_screenshots_of_reddit_posts from video_creation.voices import save_text_to_mp3 +import asyncio + __VERSION__ = "2.5.0" print( @@ -48,7 +50,7 @@ def main(POST_ID=None): redditid = id(reddit_object) length, number_of_comments = save_text_to_mp3(reddit_object) length = math.ceil(length) - get_screenshots_of_reddit_posts(reddit_object, number_of_comments) + asyncio.run(get_screenshots_of_reddit_posts(reddit_object, number_of_comments)) bg_config = get_background_config() download_background(bg_config) chop_background_video(bg_config, length, reddit_object)