From 0669f9187bfc9b823a11521681cc2d73badb3e0b Mon Sep 17 00:00:00 2001 From: Halali Date: Fri, 30 Nov 2018 11:27:29 +0100 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)