FIX: A hamming distance of 0 is a perfect match. Adjust to 100 for empty URLs

This commit is contained in:
Mizaki 2023-10-12 22:34:16 +01:00
parent 8dfd38a15c
commit 7527dc4fd8

View File

@ -286,9 +286,9 @@ class IssueIdentifier:
# local_cover_hash_list is a list of pre-calculated hashes.
# use_remote_alternates - indicates to use alternate covers from CV
# If there is no URL return 0
# If there is no URL return 100
if not primary_img_url:
return Score(score=0, url="", hash=0)
return Score(score=100, url="", hash=0)
try:
url_image_data = ImageFetcher(self.config.Runtime_Options_config.user_cache_dir).fetch(