From da6d8809049f80c9f9a102fef8638f94ecbf2bf0 Mon Sep 17 00:00:00 2001
From: medariox <dariovizz@hotmail.it>
Date: Wed, 30 Dec 2015 17:18:05 +0100
Subject: [PATCH] Replace hardcoded hearing_impaired option in subtitles.py

---
 sickbeard/subtitles.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sickbeard/subtitles.py b/sickbeard/subtitles.py
index ac53822fb..7b20b5733 100644
--- a/sickbeard/subtitles.py
+++ b/sickbeard/subtitles.py
@@ -198,7 +198,7 @@ def download_subtitles(subtitles_info):  # pylint: disable=too-many-locals, too-
             return existing_subtitles, None
 
         for subtitle in subtitles_list:
-            matches = subtitle.get_matches(video, hearing_impaired=False)
+            matches = subtitle.get_matches(video, hearing_impaired=sickbeard.SUBTITLES_HEARING_IMPAIRED)
             score = subliminal.subtitle.compute_score(matches, video)
             logger.log(u"[%s] Subtitle score for %s is: %s (min=%s)"
                        % (subtitle.provider_name, subtitle.id, score, user_score), logger.DEBUG)
@@ -374,7 +374,7 @@ class SubtitlesFinder(object):
                                                                            only_one=not sickbeard.SUBTITLES_MULTI)
 
                             for subtitle in subtitles_list:
-                                matches = subtitle.get_matches(video, hearing_impaired=False)
+                                matches = subtitle.get_matches(video, hearing_impaired=sickbeard.SUBTITLES_HEARING_IMPAIRED)
                                 score = subliminal.subtitle.compute_score(matches, video)
                                 logger.log(u"[%s] Subtitle score for %s is: %s (min=%s)"
                                            % (subtitle.provider_name, subtitle.id, score, user_score), logger.DEBUG)
-- 
GitLab