mirror of
https://github.com/morpheus65535/bazarr.git
synced 2024-11-13 19:22:47 +08:00
Continuing development.
This commit is contained in:
parent
dd5a05f9fb
commit
32ab77dc76
1 changed files with 1 additions and 1 deletions
|
@ -124,7 +124,6 @@ def download_subtitle(path, language, hi, forced, providers, providers_auth, sce
|
||||||
providers_auth['opensubtitles']['only_foreign'] = False
|
providers_auth['opensubtitles']['only_foreign'] = False
|
||||||
|
|
||||||
for l in language:
|
for l in language:
|
||||||
l = l.split(':')[0]
|
|
||||||
if l == 'pob':
|
if l == 'pob':
|
||||||
lang_obj = Language('por', 'BR')
|
lang_obj = Language('por', 'BR')
|
||||||
if forced == "True":
|
if forced == "True":
|
||||||
|
@ -606,6 +605,7 @@ def wanted_download_subtitles(path, l, count_episodes):
|
||||||
|
|
||||||
for i in range(len(attempt)):
|
for i in range(len(attempt)):
|
||||||
if attempt[i][0] == language:
|
if attempt[i][0] == language:
|
||||||
|
language = language.split(':')[0]
|
||||||
if search_active(attempt[i][1]):
|
if search_active(attempt[i][1]):
|
||||||
notifications.write(msg='Searching for series subtitles...', queue='get_subtitle', item=l, length=count_episodes)
|
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)),
|
result = download_subtitle(path_replace(episode[0]), str(alpha3_from_alpha2(language)),
|
||||||
|
|
Loading…
Reference in a new issue