mirror of https://github.com/morpheus65535/bazarr
manual_search: always return dict
This commit is contained in:
parent
d126da710c
commit
17e47fc48e
|
@ -281,6 +281,9 @@ def download_subtitle(path, language, hi, providers, providers_auth, sceneName,
|
||||||
|
|
||||||
def manual_search(path, language, hi, providers, providers_auth, sceneName, media_type):
|
def manual_search(path, language, hi, providers, providers_auth, sceneName, media_type):
|
||||||
logging.debug('BAZARR Manually searching subtitles for this file: ' + path)
|
logging.debug('BAZARR Manually searching subtitles for this file: ' + path)
|
||||||
|
|
||||||
|
subtitles_dict = {}
|
||||||
|
|
||||||
if hi == "True":
|
if hi == "True":
|
||||||
hi = True
|
hi = True
|
||||||
else:
|
else:
|
||||||
|
@ -354,7 +357,7 @@ def manual_search(path, language, hi, providers, providers_auth, sceneName, medi
|
||||||
subtitles_dict = sorted(subtitles_list, key=lambda x: x['score'], reverse=True)
|
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 ' + str(len(subtitles_dict)) + " subtitles have been found for this file: " + path)
|
||||||
logging.debug('BAZARR Ended searching subtitles 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):
|
def manual_download_subtitle(path, language, hi, subtitle, provider, providers_auth, sceneName, media_type):
|
||||||
|
|
Loading…
Reference in New Issue