Skip to content

Commit

Permalink
Another fix for #517.
Browse files Browse the repository at this point in the history
  • Loading branch information
morpheus65535 committed Aug 16, 2019
1 parent 3a7062c commit 94cfc53
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions bazarr/get_subtitle.py
Original file line number Diff line number Diff line change
Expand Up @@ -518,9 +518,14 @@ def series_download_subtitles(no):
if language is not None:
notifications.write(msg='Searching for series subtitles...', queue='get_subtitle', item=i,
length=count_episodes_details)
result = download_subtitle(path_replace(episode[0]), str(alpha3_from_alpha2(language)),
series_details[0], series_details[2], providers_list,
providers_auth, str(episode[3]), series_details[1],
result = download_subtitle(path_replace(episode[0]),
str(alpha3_from_alpha2(language.split(':')[0])),
series_details[0],
"True" if len(language.split(':')) > 1 else "False",
providers_list,
providers_auth,
str(episode[3]),
series_details[1],
'series')
if result is not None:
message = result[0]
Expand Down

0 comments on commit 94cfc53

Please sign in to comment.