1
0
Fork 0
mirror of https://github.com/morpheus65535/bazarr synced 2024-12-26 01:27:07 +00:00

Maximum score value modified

This commit is contained in:
morpheus65535 2018-04-06 07:31:13 -04:00
parent 8aac949e8f
commit 25216ac0cf

View file

@ -16,7 +16,7 @@ from notifier import send_notifications
region.configure('dogpile.cache.memory') region.configure('dogpile.cache.memory')
def download_subtitle(path, language, hi, providers, providers_auth, sceneName): def download_subtitle(path, language, hi, providers, providers_auth, sceneName):
minimum_score = float(get_general_settings()[8]) / 100 * 360 minimum_score = float(get_general_settings()[8]) / 100 * 359
use_scenename = get_general_settings()[9] use_scenename = get_general_settings()[9]
use_postprocessing = get_general_settings()[10] use_postprocessing = get_general_settings()[10]
postprocessing_cmd = get_general_settings()[11] postprocessing_cmd = get_general_settings()[11]
@ -45,7 +45,7 @@ def download_subtitle(path, language, hi, providers, providers_auth, sceneName):
else: else:
single = get_general_settings()[7] single = get_general_settings()[7]
try: try:
score = round(float(compute_score(best_subtitle, video)) / 360 * 100, 2) score = round(float(compute_score(best_subtitle, video)) / 359 * 100, 2)
if used_sceneName == True: if used_sceneName == True:
video = scan_video(path) video = scan_video(path)
if single == 'True': if single == 'True':