Updated TODO and some docs

pull/507/head
HallowedDust5 3 years ago
parent d5ac81c46c
commit 6a4e8ffd2c

@ -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/
"""

@ -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()

@ -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"))

Loading…
Cancel
Save