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.
This commit is contained in:
vitiko98 2022-06-19 18:41:16 -04:00
parent b724305eb4
commit 696becbeb1

View file

@ -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)