pull/191/head
Louis Vézina 6 years ago
parent fe283d3cd9
commit b256c5f341

@ -102,6 +102,7 @@ def download_subtitle(path, language, hi, providers, providers_auth, sceneName,
logging.exception('Error saving subtitles file to disk.')
return None
else:
if len(result) > 0:
downloaded_provider = result[0].provider_name
downloaded_language = language_from_alpha3(result[0].language.alpha3)
downloaded_language_code2 = alpha2_from_alpha3(result[0].language.alpha3)
@ -142,6 +143,8 @@ def download_subtitle(path, language, hi, providers, providers_auth, sceneName,
return message
else:
return None
else:
return None
def manual_search(path, language, hi, providers, providers_auth, sceneName, media_type):
if hi == "True":
@ -260,6 +263,7 @@ def manual_download_subtitle(path, language, hi, subtitle, provider, providers_a
logging.exception('Error saving subtitles file to disk.')
return None
else:
if len(result) > 0:
downloaded_provider = result[0].provider_name
downloaded_language = language_from_alpha3(result[0].language.alpha3)
downloaded_language_code2 = alpha2_from_alpha3(result[0].language.alpha3)
@ -295,6 +299,8 @@ def manual_download_subtitle(path, language, hi, subtitle, provider, providers_a
logging.info('Post-processing result for file ' + path + ' : ' + out)
return message
else:
return None
def series_download_subtitles(no):
if get_general_settings()[24] is True:

Loading…
Cancel
Save