diff --git a/video_creation/final_video.py b/video_creation/final_video.py index 66cfa6b..6544971 100644 --- a/video_creation/final_video.py +++ b/video_creation/final_video.py @@ -82,9 +82,8 @@ def make_final_video( audio_clips = [AudioFileClip(f"assets/temp/{id}/mp3/title.mp3")] audio_clips.insert(1,AudioFileClip(f"assets/temp/{id}/mp3/postaudio.mp3")) elif settings.config["settings"]["storymodemethod"] == 1: - #here work is not done14 audio_clips = [AudioFileClip(f"assets/temp/{id}/mp3/postaudio-{i}.mp3") \ - for i in track(range(number_of_clips+1),"Collecting the audio files...")] + for i in track(range(number_of_clips + 1), "Collecting the audio files...")] audio_clips.insert(0, AudioFileClip(f"assets/temp/{id}/mp3/title.mp3")) else: @@ -110,7 +109,6 @@ def make_final_video( ) if settings.config["settings"]["storymode"]: if settings.config["settings"]["storymodemethod"] == 0: - if os.path.exists(f"assets/temp/{id}/png/story_content.png"):# else: story mode stuff image_clips.insert( 1, ImageClip(f"assets/temp/{id}/png/story_content.png") diff --git a/video_creation/screenshot_downloader.py b/video_creation/screenshot_downloader.py index fc8dd6d..99c4054 100644 --- a/video_creation/screenshot_downloader.py +++ b/video_creation/screenshot_downloader.py @@ -19,7 +19,7 @@ from utils.imagenarator import imagemaker -def download_screenshots_of_reddit_posts(reddit_object: dict, screenshot_num: int): +def get_screenshots_of_reddit_posts(reddit_object: dict, screenshot_num: int): """Downloads screenshots of reddit posts as seen on the web. Downloads to assets/temp/png Args: @@ -135,7 +135,7 @@ def download_screenshots_of_reddit_posts(reddit_object: dict, screenshot_num: in # if settings.config["settings"]["storymodemethode"] == 0: # story=True - if settings.config["settings"]["storymodemethod"] : + if settings.config["settings"]["storymodemethod"] == 1 : # for idx,item in enumerate(reddit_object["thread_post"]): imagemaker(theme=bgcolor,reddit_obj=reddit_object,txtclr=txtcolor)