This commit is contained in:
2025-02-26 20:47:29 -05:00
parent 5d4335f92d
commit 1ab5adfc2d
4 changed files with 11 additions and 8 deletions

View File

@ -257,7 +257,7 @@ class Cache:
matched = self.get_matched(redis_results=redis_result, matched_candidate=candidate,
confidence=confidence)
if matched:
if matched and confidence >= 90:
time_end: float = time.time()
time_diff: float = time_end - time_start
matched.confidence = confidence
@ -295,7 +295,7 @@ class Cache:
candidate_tracks=result_tracks)
else:
best_match = (result_tracks[0], 100)
if not best_match:
if not best_match or confidence < 90:
return None
(candidate, confidence) = best_match
logging.info("Result found on %s", self.label)