chores , naming

pull/1288/head
electro199 2 years ago
parent 2a5609c038
commit 6100430c95

@ -82,7 +82,6 @@ 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...")]
audio_clips.insert(0, AudioFileClip(f"assets/temp/{id}/mp3/title.mp3"))
@ -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")

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

Loading…
Cancel
Save