From 53c98f5d512a7beb415632cd4dbca465d309b1ef Mon Sep 17 00:00:00 2001 From: Jason <66544866+JasonLovesDoggo@users.noreply.github.com> Date: Tue, 5 Jul 2022 20:31:21 -0400 Subject: [PATCH] Revert "Added translation for filename" --- video_creation/final_video.py | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/video_creation/final_video.py b/video_creation/final_video.py index be42d86..d706361 100755 --- a/video_creation/final_video.py +++ b/video_creation/final_video.py @@ -4,7 +4,6 @@ import os import re from os.path import exists from typing import Dict -import translators as ts from moviepy.editor import ( VideoFileClip, @@ -36,14 +35,7 @@ def name_normalize( name = re.sub(r'([0-9]+)\s?\/\s?([0-9]+)', r'\1 of \2', name) name = re.sub(r'(\w+)\s?\/\s?(\w+)', r'\1 or \2', name) name = re.sub(r'\/', r'', name) - - if os.getenv("POSTLANG") != "": - print_substep("Translating filename...") - translated_name = ts.google(name, to_language=os.getenv("POSTLANG")) - return translated_name - - else: - return name + return name def make_final_video(number_of_clips: int, length: int, reddit_obj: dict):