From fa3b773ef2a4c543587b953cbdb7abc7b804ae06 Mon Sep 17 00:00:00 2001 From: morpheus65535 Date: Sun, 21 Mar 2021 20:14:12 -0400 Subject: [PATCH] Fixed TypeError when trying to get video information while all providers are throttled. --- libs/subliminal_patch/core.py | 4 ++++ 1 file changed, 4 insertions(+) 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