Skip to content

Commit 38fcb83

Browse files
Merge pull request #981 from Napuh/develop
Fix: cutting long file names to avoid errors when saving
2 parents 9008165 + d7419cf commit 38fcb83

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
@@ -29,11 +29,11 @@ def name_normalize(name: str) -> str:
2929
name = re.sub(r"(\d+)\s?\/\s?(\d+)", r"\1 of \2", name)
3030
name = re.sub(r"(\w+)\s?\/\s?(\w+)", r"\1 or \2", name)
3131
name = re.sub(r"\/", r"", name)
32+
name[:30]
3233

3334
lang = settings.config["reddit"]["thread"]["post_lang"]
3435
if lang:
3536
import translators as ts
36-
3737
print_substep("Translating filename...")
3838
translated_name = ts.google(name, to_language=lang)
3939
return translated_name

0 commit comments

Comments
 (0)