From 1092733b5e8e59cba0b60bdb21344445fa4976f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Louis=20V=C3=A9zina?= <5130500+morpheus65535@users.noreply.github.com> Date: Thu, 27 Sep 2018 15:06:34 -0400 Subject: [PATCH] Fix for POB in manual search --- get_subtitle.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/get_subtitle.py b/get_subtitle.py index de7af773a..d7bcd6d55 100644 --- a/get_subtitle.py +++ b/get_subtitle.py @@ -124,7 +124,7 @@ def manual_search(path, language, hi, providers, providers_auth, sceneName, medi hi = False language_set = set() for lang in ast.literal_eval(language): - if lang == 'pob': + if lang == 'pb': language_set.add(Language('por', 'BR')) else: language_set.add(Language(alpha3_from_alpha2(lang))) @@ -183,7 +183,8 @@ def manual_download_subtitle(path, language, hi, subtitle, provider, providers_a use_postprocessing = get_general_settings()[10] postprocessing_cmd = get_general_settings()[11] - if language == 'pob': + if language == 'pb': + language = alpha3_from_alpha2(language) lang_obj = Language('por', 'BR') else: language = alpha3_from_alpha2(language)