From 0944d3b38a8bac11917471b42e050f734fff8ed2 Mon Sep 17 00:00:00 2001 From: iaacornus Date: Sat, 4 Jun 2022 23:35:14 +0800 Subject: [PATCH] synched with the cli.py parameters --- main.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.py b/main.py index 1496aa6..272e93e 100644 --- a/main.py +++ b/main.py @@ -11,7 +11,7 @@ from video_creation.final_video import make_final_video from utils.console import print_markdown -def main(): +def main(subreddit_=None, background=None): print_markdown( "### Thanks for using this tool! [Feel free to contribute to this project on " + "GitHub!](https://lewismenelaws.com) If you have any questions, feel free to" @@ -20,11 +20,11 @@ def main(): time.sleep(3) - reddit_object = get_subreddit_threads() + reddit_object = get_subreddit_threads(subreddit_) load_dotenv() length, number_of_comments = save_text_to_mp3(reddit_object) download_screenshots_of_reddit_posts(reddit_object, number_of_comments, os.getenv("THEME")) - download_background() + download_background(background) chop_background_video(length) final_video = make_final_video(number_of_comments)