diff options
author | vitiko98 <[email protected]> | 2022-06-19 18:41:16 -0400 |
---|---|---|
committer | vitiko98 <[email protected]> | 2022-06-19 18:52:52 -0400 |
commit | 696becbeb174aa06c905a99171c84fb985e9887a (patch) | |
tree | c77bece09197d49162cdc7a9bd3c696f86ad1579 | |
parent | b724305eb4dc22b469c5c5f2033d89de11b4aeef (diff) | |
download | bazarr-696becbeb174aa06c905a99171c84fb985e9887a.tar.gz bazarr-696becbeb174aa06c905a99171c84fb985e9887a.zip |
Try to avoid guessit internal exception (#1858)v1.0.5-beta.30
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.
-rw-r--r-- | libs/subliminal_patch/core.py | 4 |
1 files 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) |