From 53958c62b83a9a3a72ffc4693a4d4aae2da0e0ea Mon Sep 17 00:00:00 2001 From: morpheus65535 Date: Sun, 13 Dec 2020 10:20:51 -0500 Subject: [PATCH] Improvement to matching dropdowns in manual search UI. --- bazarr/get_subtitle.py | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/bazarr/get_subtitle.py b/bazarr/get_subtitle.py index 4b291e471..cc08183cb 100644 --- a/bazarr/get_subtitle.py +++ b/bazarr/get_subtitle.py @@ -390,13 +390,18 @@ def manual_search(path, language, hi, forced, providers, providers_auth, sceneNa logging.debug(u"BAZARR Skipping %s, because it doesn't match our series/episode", s) continue - if s.hearing_impaired == initial_hi: - matches.add('hearing_impaired') - score, score_without_hash = compute_score(matches, s, video, hearing_impaired=initial_hi) - not_matched = scores - matches + if 'hash' not in matches: + not_matched = scores - matches + else: + not_matched = set() s.score = score + if s.hearing_impaired == initial_hi: + matches.add('hearing_impaired') + else: + not_matched.add('hearing_impaired') + releases = [] if hasattr(s, 'release_info'): if s.release_info is not None: