Update main.py

pull/1411/head
Xpl0itU 3 years ago committed by GitHub
parent 6041cce53e
commit a293a9de02
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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.screenshot_downloader import get_screenshots_of_reddit_posts
from video_creation.voices import save_text_to_mp3 from video_creation.voices import save_text_to_mp3
import asyncio
__VERSION__ = "2.5.0" __VERSION__ = "2.5.0"
print( print(
@ -48,7 +50,7 @@ def main(POST_ID=None):
redditid = id(reddit_object) redditid = id(reddit_object)
length, number_of_comments = save_text_to_mp3(reddit_object) length, number_of_comments = save_text_to_mp3(reddit_object)
length = math.ceil(length) 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() bg_config = get_background_config()
download_background(bg_config) download_background(bg_config)
chop_background_video(bg_config, length, reddit_object) chop_background_video(bg_config, length, reddit_object)

Loading…
Cancel
Save