From 258dc3a77627d6f1c059825e7975577a31a44f06 Mon Sep 17 00:00:00 2001 From: German Gutierrez Date: Sat, 15 Feb 2020 12:09:14 +0100 Subject: [PATCH] subliminal_patch: hearing impaired fix --- libs/subliminal_patch/score.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/subliminal_patch/score.py b/libs/subliminal_patch/score.py index c7b687e8c..eaef2fb3e 100644 --- a/libs/subliminal_patch/score.py +++ b/libs/subliminal_patch/score.py @@ -113,7 +113,7 @@ def compute_score(matches, subtitle, video, hearing_impaired=None): matches |= {'title', 'year'} # handle hearing impaired - if hearing_impaired is not None and subtitle.hearing_impaired == hearing_impaired: + if hearing_impaired is not None and subtitle.hearing_impaired == hearing_impaired and subtitle.hearing_impaired: logger.debug('Matched hearing_impaired') matches.add('hearing_impaired')