Adjustments to video length limiter for YouTube shorts

pull/244/head
Jacob Chambers 3 years ago
parent 81f0604335
commit f40bbc6330

@ -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 = gTTS(text=reddit_obj["thread_title"], tld=os.getenv("ACCENT"), slow=False)
tts.save(f"assets/mp3/title.mp3") 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 = gTTS(text=comment["comment_body"], tld=os.getenv("ACCENT"), slow=False)
tts.save(f"assets/mp3/{total_files}.mp3") tts.save(f"assets/mp3/{total_files}.mp3")
if total_length(total_files) < 60: if total_length(total_files) < 60:

Loading…
Cancel
Save