little fixes

pull/958/head
Drugsosos 3 years ago
parent 66af78c875
commit dd19a79ecd
No known key found for this signature in database
GPG Key ID: 8E35176FE617E28D

@ -37,7 +37,7 @@ async def main(POST_ID=None):
cleanup() cleanup()
reddit_object = get_subreddit_threads(POST_ID) reddit_object = get_subreddit_threads(POST_ID)
comments_created = await save_text_to_mp3(reddit_object) comments_created = await save_text_to_mp3(reddit_object)
download_screenshots_of_reddit_posts(reddit_object, comments_created) await download_screenshots_of_reddit_posts(reddit_object, comments_created)
bg_config = get_background_config() bg_config = get_background_config()
make_final_video(comments_created, reddit_object, bg_config) make_final_video(comments_created, reddit_object, bg_config)

@ -137,13 +137,13 @@ def make_final_video(
) )
) )
for photo_idx in indexes_for_videos: for idx, photo_idx in enumerate(indexes_for_videos):
image_clips.append( image_clips.append(
create_image_clip( create_image_clip(
f'comment_{photo_idx}', f'comment_{photo_idx}',
audio_clips[photo_idx].start, audio_clips[idx + 1].start,
audio_clips[photo_idx].end, audio_clips[idx + 1].end,
audio_clips[photo_idx].duration audio_clips[idx + 1].duration
) )
) )

@ -74,7 +74,7 @@ async def download_screenshots_of_reddit_posts(reddit_object: dict, voiced_idx:
) )
else: else:
for idx in track( for idx in track(
screenshot_num, voiced_idx,
"Downloading screenshots..." "Downloading screenshots..."
): ):
comment = reddit_object["comments"][idx] comment = reddit_object["comments"][idx]

Loading…
Cancel
Save