Merge pull request #823 from GermanG/hearing_impaired_match_fix

subliminal_patch: hearing impaired fix
pull/835/head
morpheus65535 5 years ago committed by GitHub
commit 3d87c6ee15
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -113,7 +113,7 @@ def compute_score(matches, subtitle, video, hearing_impaired=None):
matches |= {'title', 'year'} matches |= {'title', 'year'}
# handle hearing impaired # 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') logger.debug('Matched hearing_impaired')
matches.add('hearing_impaired') matches.add('hearing_impaired')

Loading…
Cancel
Save