From 696becbeb174aa06c905a99171c84fb985e9887a Mon Sep 17 00:00:00 2001 From: vitiko98 Date: Sun, 19 Jun 2022 18:41:16 -0400 Subject: [PATCH] Try to avoid guessit internal exception (#1858) I was unable to reproduce the exception, but I found a strange pattern: whenever the hints["expected_title"] value had the same value as the title found in the filename, there was a list from the rebulk module constantly growing. Once I remove the expected_title "hint", this behavior is gone. This change is transparent. If for some reason guessit returns a different movie/series title, Bazarr will refine it with the database anyway. --- libs/subliminal_patch/core.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/subliminal_patch/core.py b/libs/subliminal_patch/core.py index 065e86134..806ec0bba 100644 --- a/libs/subliminal_patch/core.py +++ b/libs/subliminal_patch/core.py @@ -759,8 +759,8 @@ def scan_video(path, dont_use_actual_file=False, hints=None, providers=None, ski # guess hints["single_value"] = True - if "title" in hints: - hints["expected_title"] = [hints["title"]] + # if "title" in hints: + # hints["expected_title"] = [hints["title"]] guessed_result = guessit(guess_from, options=hints)