diff --git a/video_creation/final_video.py b/video_creation/final_video.py index 3ea3101..2d23bc8 100644 --- a/video_creation/final_video.py +++ b/video_creation/final_video.py @@ -80,7 +80,7 @@ def make_final_video(number_of_clips, file_name): if file_name is None: filename = re.sub( - "[?\"%*:|<>]", "", (f"assets/{reddit.subreddit.submission.title}.mp4") + "[?\"%*:|<>]/", "", (f"assets/{reddit.subreddit.submission.title}.mp4") ) final.write_videofile(filename, fps=30, audio_codec="aac", audio_bitrate="192k")