Fix for POB in manual search

This commit is contained in:
Louis Vézina 2018-09-27 15:06:34 -04:00
parent f7ef9495c8
commit 1092733b5e
1 changed files with 3 additions and 2 deletions

View File

@ -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)