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)