mirror of https://github.com/morpheus65535/bazarr
Fixed TypeError when trying to get video information while all providers are throttled.
This commit is contained in:
parent
cc335863e2
commit
fa3b773ef2
|
@ -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:
|
if dont_use_actual_file and not hash_from:
|
||||||
return video
|
return video
|
||||||
|
|
||||||
|
# if all providers are throttled, skip hashing
|
||||||
|
if not providers:
|
||||||
|
skip_hashing = True
|
||||||
|
|
||||||
# size and hashes
|
# size and hashes
|
||||||
if not skip_hashing:
|
if not skip_hashing:
|
||||||
hash_path = hash_from or path
|
hash_path = hash_from or path
|
||||||
|
|
Loading…
Reference in New Issue