From 83433cfaafd0ba29064bf8ec8d5bcd708197716b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Victor=20SDV?= Date: Wed, 12 Oct 2022 13:34:25 -0300 Subject: [PATCH] correcting filename length ffmpeg no such file#err --- video_creation/final_video.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/video_creation/final_video.py b/video_creation/final_video.py index 6315084..5a7deee 100644 --- a/video_creation/final_video.py +++ b/video_creation/final_video.py @@ -161,7 +161,7 @@ def make_final_video( title = re.sub(r"[^\w\s-]", "", reddit_obj["thread_title"]) idx = re.sub(r"[^\w\s-]", "", reddit_obj["thread_id"]) - filename = f"{name_normalize(title)[:251]}" + filename = f"{name_normalize(title)[:150]}" subreddit = settings.config["reddit"]["thread"]["subreddit"] if not exists(f"./results/{subreddit}"):