mirror of
https://github.com/morpheus65535/bazarr.git
synced 2024-12-28 18:41:20 +08:00
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:
parent
b724305eb4
commit
696becbeb1
1 changed files with 2 additions and 2 deletions
|
@ -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…
Reference in a new issue