Skip to content

Commit 9e37b40

Browse files
Merge pull request #1120 from swoker/patch-1
limit filename to 255 chars
2 parents d1009ef + 7132bd6 commit 9e37b40

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

video_creation/final_video.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ def make_final_video(
125125
title = re.sub(r"[^\w\s-]", "", reddit_obj["thread_title"])
126126
idx = re.sub(r"[^\w\s-]", "", reddit_obj["thread_id"])
127127

128-
filename = f"{name_normalize(title)}.mp4"
128+
filename = f"{name_normalize(title)[:251]}.mp4"
129129
subreddit = settings.config["reddit"]["thread"]["subreddit"]
130130

131131
if not exists(f"./results/{subreddit}"):

0 commit comments

Comments
 (0)