mirror of
https://github.com/morpheus65535/bazarr
synced 2024-12-23 08:13:14 +00:00
Fixed TypeError when trying to get video information while all providers are throttled.
This commit is contained in:
parent
cc335863e2
commit
fa3b773ef2
1 changed files with 4 additions and 0 deletions
|
@ -546,6 +546,10 @@ def scan_video(path, dont_use_actual_file=False, hints=None, providers=None, ski
|
|||
if dont_use_actual_file and not hash_from:
|
||||
return video
|
||||
|
||||
# if all providers are throttled, skip hashing
|
||||
if not providers:
|
||||
skip_hashing = True
|
||||
|
||||
# size and hashes
|
||||
if not skip_hashing:
|
||||
hash_path = hash_from or path
|
||||
|
|
Loading…
Reference in a new issue