From f40bbc63302c95e626e25579391a3eb8408b5abe Mon Sep 17 00:00:00 2001 From: Jacob Chambers Date: Sat, 4 Jun 2022 01:21:17 +0100 Subject: [PATCH] Adjustments to video length limiter for YouTube shorts --- video_creation/voices.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/video_creation/voices.py b/video_creation/voices.py index 555a682..7678d70 100644 --- a/video_creation/voices.py +++ b/video_creation/voices.py @@ -27,7 +27,7 @@ def save_text_to_mp3(reddit_obj): tts = gTTS(text=reddit_obj["thread_title"], tld=os.getenv("ACCENT"), slow=False) tts.save(f"assets/mp3/title.mp3") - for comment_num, comment in track(enumerate(reddit_obj["comments"]), "Saving..."): + for i, comment in track(enumerate(reddit_obj["comments"]), "Saving..."): tts = gTTS(text=comment["comment_body"], tld=os.getenv("ACCENT"), slow=False) tts.save(f"assets/mp3/{total_files}.mp3") if total_length(total_files) < 60: