From 7527dc4fd8bac2f2a644f518c45a428075a517ff Mon Sep 17 00:00:00 2001 From: Mizaki Date: Thu, 12 Oct 2023 22:34:16 +0100 Subject: [PATCH] FIX: A hamming distance of 0 is a perfect match. Adjust to 100 for empty URLs --- comictaggerlib/issueidentifier.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/comictaggerlib/issueidentifier.py b/comictaggerlib/issueidentifier.py index d8ac1de..0f3339c 100644 --- a/comictaggerlib/issueidentifier.py +++ b/comictaggerlib/issueidentifier.py @@ -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(