summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormorpheus65535 <[email protected]>2021-03-21 20:14:12 -0400
committermorpheus65535 <[email protected]>2021-03-21 20:14:12 -0400
commitfa3b773ef2a4c543587b953cbdb7abc7b804ae06 (patch)
treef56b20e525eea41a73cc3f4d8db75c32a4832efd
parentcc335863e2658816b09980723ac27f848ce79ec6 (diff)
downloadbazarr-fa3b773ef2a4c543587b953cbdb7abc7b804ae06.tar.gz
bazarr-fa3b773ef2a4c543587b953cbdb7abc7b804ae06.zip
Fixed TypeError when trying to get video information while all providers are throttled.
-rw-r--r--libs/subliminal_patch/core.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/libs/subliminal_patch/core.py b/libs/subliminal_patch/core.py
index eb9d9e3d2..c262c4418 100644
--- a/libs/subliminal_patch/core.py
+++ b/libs/subliminal_patch/core.py
@@ -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