From d384b9307bf86845e4465628b3c6fc138f14d9c6 Mon Sep 17 00:00:00 2001 From: morpheus65535 Date: Wed, 9 Mar 2022 08:27:04 -0500 Subject: [PATCH] Fixed network issues from preventing Bazarr startup. --- bazarr/utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bazarr/utils.py b/bazarr/utils.py index b8cc700ed..b9eb2b2e5 100644 --- a/bazarr/utils.py +++ b/bazarr/utils.py @@ -24,7 +24,6 @@ from subliminal_patch.subtitle import Subtitle from subliminal_patch.core import get_subtitle_path from subzero.language import Language from subliminal import region as subliminal_cache_region -from deep_translator import GoogleTranslator from dogpile.cache import make_region import datetime import glob @@ -442,6 +441,8 @@ def subtitles_apply_mods(language, subtitle_path, mods): def translate_subtitles_file(video_path, source_srt_file, to_lang, forced, hi): + from deep_translator import GoogleTranslator + language_code_convert_dict = { 'he': 'iw', 'zt': 'zh-cn',