Fix for POB in manual search

pull/191/head
Louis Vézina 6 years ago
parent f7ef9495c8
commit 1092733b5e

@ -124,7 +124,7 @@ def manual_search(path, language, hi, providers, providers_auth, sceneName, medi
hi = False hi = False
language_set = set() language_set = set()
for lang in ast.literal_eval(language): for lang in ast.literal_eval(language):
if lang == 'pob': if lang == 'pb':
language_set.add(Language('por', 'BR')) language_set.add(Language('por', 'BR'))
else: else:
language_set.add(Language(alpha3_from_alpha2(lang))) 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] use_postprocessing = get_general_settings()[10]
postprocessing_cmd = get_general_settings()[11] postprocessing_cmd = get_general_settings()[11]
if language == 'pob': if language == 'pb':
language = alpha3_from_alpha2(language)
lang_obj = Language('por', 'BR') lang_obj = Language('por', 'BR')
else: else:
language = alpha3_from_alpha2(language) language = alpha3_from_alpha2(language)

Loading…
Cancel
Save