From 615618cf531755b5f025d9b6902fc12688eba077 Mon Sep 17 00:00:00 2001 From: The-Drobe Date: Mon, 6 Jun 2022 17:08:55 +0800 Subject: [PATCH] Fixed some small issues --- video_creation/voices.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/video_creation/voices.py b/video_creation/voices.py index bf9a249..680fe4b 100644 --- a/video_creation/voices.py +++ b/video_creation/voices.py @@ -35,8 +35,8 @@ def save_text_to_mp3(reddit_obj): if length > 50: break - comment=comment["comment_body"] - text=re.sub('((http|https)\:\/\/)?[a-zA-Z0-9\.\/\?\:@\-_=#]+\.([a-zA-Z]){2,6}([a-zA-Z0-9\.\&\/\?\:@\-_=#])*', '', comment) + comment = comment["comment_body"] + text = re.sub('((http|https)\:\/\/)?[a-zA-Z0-9\.\/\?\:@\-_=#]+\.([a-zA-Z]){2,6}([a-zA-Z0-9\.\&\/\?\:@\-_=#])*', '', comment) TTS.tts(text, f"./assets/mp3/{idx}.mp3", Voice) length += MP3(f"./assets/mp3/{idx}.mp3").info.length