Merge pull request #1120 from swoker/patch-1

limit filename to 255 chars
This commit is contained in:
Jason authored and GitHub committed 2022-08-05 22:46:23 -04:00
commit 9e37b4020e
1 file changed
+1 -1
+1 -1
View File
@@ -125,7 +125,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)}.mp4"
filename = f"{name_normalize(title)[:251]}.mp4"
subreddit = settings.config["reddit"]["thread"]["subreddit"]
if not exists(f"./results/{subreddit}"):