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.
pull/1881/head v1.0.5-beta.30
vitiko98 3 years ago
parent b724305eb4
commit 696becbeb1

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

Loading…
Cancel
Save