We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9008165 + d7419cf commit 38fcb83Copy full SHA for 38fcb83
video_creation/final_video.py
@@ -29,11 +29,11 @@ def name_normalize(name: str) -> str:
29
name = re.sub(r"(\d+)\s?\/\s?(\d+)", r"\1 of \2", name)
30
name = re.sub(r"(\w+)\s?\/\s?(\w+)", r"\1 or \2", name)
31
name = re.sub(r"\/", r"", name)
32
+ name[:30]
33
34
lang = settings.config["reddit"]["thread"]["post_lang"]
35
if lang:
36
import translators as ts
-
37
print_substep("Translating filename...")
38
translated_name = ts.google(name, to_language=lang)
39
return translated_name
0 commit comments