From 552cae74838a3f67df59680c469ad0146bda6083 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Louis=20V=C3=A9zina?= <5130500+morpheus65535@users.noreply.github.com> Date: Thu, 29 Nov 2018 12:55:43 -0500 Subject: [PATCH] Fix to prevent manual search to return None instead of an empty json string. --- 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 9d310810a..f4bad4b0e 100644 --- a/bazarr/get_subtitle.py +++ b/bazarr/get_subtitle.py @@ -245,7 +245,7 @@ def manual_search(path, language, hi, providers, providers_auth, sceneName, medi subtitles_dict = sorted(subtitles_list, key=lambda x: x['score'], reverse=True) logging.debug('BAZARR ' + str(len(subtitles_dict)) + " subtitles have been found for this file: " + path) logging.debug('BAZARR Ended searching subtitles for this file: ' + path) - return(subtitles_dict) + return(subtitles_dict) def manual_download_subtitle(path, language, hi, subtitle, provider, providers_auth, sceneName, media_type): logging.debug('BAZARR Manually downloading subtitles for this file: ' + path)