From 4b3f3bb8ff6283261937001dfabfbc8a7206bc84 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 e9504ae..b084195 100755 --- a/video_creation/final_video.py +++ b/video_creation/final_video.py @@ -128,7 +128,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}"):