mirror of
https://github.com/morpheus65535/bazarr.git
synced 2025-01-11 09:17:47 +08:00
subliminal_patch.core: don't assume hints["title"] exists
This commit is contained in:
parent
edfd75c848
commit
4c7c7a692b
1 changed files with 2 additions and 1 deletions
|
@ -514,7 +514,8 @@ def scan_video(path, dont_use_actual_file=False, hints=None, providers=None, ski
|
|||
|
||||
# guess
|
||||
hints["single_value"] = True
|
||||
hints["expected_title"] = [hints["title"]]
|
||||
if "title" in hints:
|
||||
hints["expected_title"] = [hints["title"]]
|
||||
|
||||
guessed_result = guessit(guess_from, options=hints)
|
||||
logger.debug('GuessIt found: %s', json.dumps(guessed_result, cls=GuessitEncoder, indent=4, ensure_ascii=False))
|
||||
|
|
Loading…
Reference in a new issue