Fixed TypeError when trying to get video information while all providers are throttled.

This commit is contained in:
morpheus65535 2021-03-21 20:14:12 -04:00
parent cc335863e2
commit fa3b773ef2
1 changed files with 4 additions and 0 deletions

View File

@ -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