From 94cfc53d027edeecbd5b6ac60db8558997f808e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Louis=20V=C3=A9zina?= <5130500+morpheus65535@users.noreply.github.com> Date: Thu, 15 Aug 2019 22:10:28 -0400 Subject: [PATCH] Another fix for #517. --- bazarr/get_subtitle.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/bazarr/get_subtitle.py b/bazarr/get_subtitle.py index 1337a23f7..699091ea1 100644 --- a/bazarr/get_subtitle.py +++ b/bazarr/get_subtitle.py @@ -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]