From 32ab77dc765ea11dcda726cd0ccf609ccd3a68ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Louis=20V=C3=A9zina?= <5130500+morpheus65535@users.noreply.github.com> Date: Thu, 30 May 2019 21:56:05 -0400 Subject: [PATCH] Continuing development. --- bazarr/get_subtitle.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bazarr/get_subtitle.py b/bazarr/get_subtitle.py index c35a9e81a..3b3c4a327 100644 --- a/bazarr/get_subtitle.py +++ b/bazarr/get_subtitle.py @@ -124,7 +124,6 @@ def download_subtitle(path, language, hi, forced, providers, providers_auth, sce providers_auth['opensubtitles']['only_foreign'] = False for l in language: - l = l.split(':')[0] if l == 'pob': lang_obj = Language('por', 'BR') if forced == "True": @@ -606,6 +605,7 @@ def wanted_download_subtitles(path, l, count_episodes): for i in range(len(attempt)): if attempt[i][0] == language: + language = language.split(':')[0] if search_active(attempt[i][1]): notifications.write(msg='Searching for series subtitles...', queue='get_subtitle', item=l, length=count_episodes) result = download_subtitle(path_replace(episode[0]), str(alpha3_from_alpha2(language)),