From 71eca6991215e1e8538c03c789b4893bacc0eef3 Mon Sep 17 00:00:00 2001 From: Callum Leslie Date: Wed, 6 Jul 2022 20:08:45 +0000 Subject: [PATCH] fix: handle non value for post lang --- 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 1080f66..4f73cf8 100755 --- a/video_creation/final_video.py +++ b/video_creation/final_video.py @@ -37,7 +37,7 @@ def name_normalize(name: str) -> str: name = re.sub(r"\/", r"", name) lang = settings.config["reddit"]["thread"]["post_lang"] - if lang != "": + if lang: print_substep("Translating filename...") translated_name = ts.google(name, to_language = lang) return translated_name