From 6a4e8ffd2c7c587524de43127ff211204b3d4b02 Mon Sep 17 00:00:00 2001 From: HallowedDust5 Date: Wed, 15 Jun 2022 15:13:46 -0400 Subject: [PATCH] Updated TODO and some docs --- main.py | 13 +++++++++++++ setup.py | 4 ++-- video_creation/final_video.py | 10 ++++++++-- 3 files changed, 23 insertions(+), 4 deletions(-) diff --git a/main.py b/main.py index 9bca6c5..6011c5e 100644 --- a/main.py +++ b/main.py @@ -14,6 +14,19 @@ import os, time console = Console() """TODO - Refactor all .py files + - Done: + - main + - final_video + - console + - Not done + - background + - screenshot_downloader + - voices + - Need docs + - setup (ADD DOCS) + - subreddit (ADD DOCS) + - loader (ADD DOCS) + - Write tests in tests/ """ diff --git a/setup.py b/setup.py index 5f83cea..1f2f75f 100644 --- a/setup.py +++ b/setup.py @@ -18,7 +18,7 @@ from pathlib import Path console = Console() -def main(): +def setup_main(): setup_done = Path(".setup-done-before").is_file() if setup_done == True: @@ -142,4 +142,4 @@ def ensureSetup(): if __name__ == '__main__': - main() + setup_main() diff --git a/video_creation/final_video.py b/video_creation/final_video.py index b3550e9..5ffd57e 100644 --- a/video_creation/final_video.py +++ b/video_creation/final_video.py @@ -97,7 +97,6 @@ def gatherImages(number_of_clips, opacity, audio_clips): Returns: list[ImageClip]: all the comments with TTS over it """ - # Gather all images image_clips = [] for i in range(0, number_of_clips): image_clips.append( @@ -111,7 +110,14 @@ def gatherImages(number_of_clips, opacity, audio_clips): return image_clips def gatherAudioClips(number_of_clips): - # Gather all audio clips + """Gathers all audio clips + + Args: + number_of_clips (int): Which index to go to in the list of audio files + + Returns: + tuple[list,CompositeAudioClip]: First index is the list of audio clips, second is all the audio clips put together + """ audio_clips = [] for i in range(0, number_of_clips): audio_clips.append(AudioFileClip(f"assets/mp3/{i}.mp3"))