From cbdbe9d97a9ff8c21965958ca2687e445c7cb63c Mon Sep 17 00:00:00 2001 From: Fernando <fernandog@users.noreply.github.com> Date: Sat, 12 Dec 2015 22:52:09 -0200 Subject: [PATCH] Add video file name to log to compare with subtitles filaname + score We don't show video filename anywhere while searching for subs @medarios what was @Labrys suggestion? Where should I add "candidates" to log and changed downloading>verifying --- sickbeard/subtitles.py | 3 ++- sickbeard/tv.py | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/sickbeard/subtitles.py b/sickbeard/subtitles.py index 932caded5..5967330f5 100644 --- a/sickbeard/subtitles.py +++ b/sickbeard/subtitles.py @@ -357,6 +357,7 @@ class SubtitlesFinder(object): % ek(os.path.join, root, video_filename), logger.DEBUG) continue + logger.log(u'Found subtitle(s) canditate(s) for %s' % video_filename, logger.INFO) hearing_impaired = sickbeard.SUBTITLES_HEARING_IMPAIRED user_score = 132 if sickbeard.SUBTITLES_PERFECT_MATCH else 111 found_subtitles = pool.download_best_subtitles(subtitles_list, video, languages=languages, @@ -414,7 +415,7 @@ class SubtitlesFinder(object): if sickbeard.SUBTITLES_DOWNLOAD_IN_PP: self.subtitles_download_in_pp() - logger.log(u'Checking for subtitles', logger.INFO) + logger.log(u'Checking for missed subtitles', logger.INFO) # get episodes on which we want subtitles # criteria is: diff --git a/sickbeard/tv.py b/sickbeard/tv.py index bdaac1d46..a57b739a1 100644 --- a/sickbeard/tv.py +++ b/sickbeard/tv.py @@ -1435,8 +1435,8 @@ class TVEpisode(object): % (self.season or 0, self.episode or 0, self.show.name), logger.DEBUG) return - logger.log(u"%s: Downloading subtitles for %s S%02dE%02d" - % (self.show.indexerid, self.show.name, self.season or 0, self.episode or 0), logger.DEBUG) + logger.log(u"Checking subtitle candidates for %s S%02dE%02d" + % (self.show.name, self.season or 0, self.episode or 0), logger.DEBUG) subtitles_info = {'location': self.location, 'subtitles': self.subtitles, 'season': self.season, 'episode': self.episode, 'name': self.name, 'show_name': self.show.name, -- GitLab