From 85da8318795aaf6fccb7dd3c0cbf22b521d6aaf5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Morav=C4=8D=C3=ADk=2C=20Marian?= Date: Sat, 23 May 2020 12:10:32 +0200 Subject: [PATCH] Fix Post-Processing trashold TypeError --- bazarr/get_subtitle.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bazarr/get_subtitle.py b/bazarr/get_subtitle.py index 51c5b7979..920576f8d 100644 --- a/bazarr/get_subtitle.py +++ b/bazarr/get_subtitle.py @@ -227,13 +227,14 @@ def download_subtitle(path, language, audio_language, hi, forced, providers, pro if media_type == 'series': use_pp_threshold = settings.general.getboolean('use_postprocessing_threshold') - pp_threshold = settings.general.postprocessing_threshold + pp_threshold = int(settings.general.postprocessing_threshold) else: use_pp_threshold = settings.general.getboolean('use_postprocessing_threshold_movie') - pp_threshold = settings.general.postprocessing_threshold_movie + pp_threshold = int(settings.general.postprocessing_threshold_movie) if not use_pp_threshold or (use_pp_threshold and percent_score < pp_threshold): postprocessing(command, path) + logging.debug("BAZARR Using post-processing command {}".format(command + path)) else: logging.debug("BAZARR post-processing skipped because subtitles score isn't below this " "threshold value: " + str(pp_threshold) + "%")