1
0
Fork 0
mirror of https://github.com/morpheus65535/bazarr synced 2024-12-26 01:27:07 +00:00

Merge pull request #823 from GermanG/hearing_impaired_match_fix

subliminal_patch: hearing impaired fix
This commit is contained in:
morpheus65535 2020-02-15 08:01:31 -05:00 committed by GitHub
commit 3d87c6ee15
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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')