mirror of
https://github.com/SickGear/SickGear.git
synced 2025-01-07 10:33:38 +00:00
Fix NotifierFactory attribute enabled_ondownloadsubtitles should be enabled_onsubtitlesdownload.
This commit is contained in:
parent
33d349d765
commit
f1e9249f59
3 changed files with 8 additions and 2 deletions
|
@ -155,6 +155,7 @@
|
||||||
* Change reduce number of DB calls for extra_info_no_name
|
* Change reduce number of DB calls for extra_info_no_name
|
||||||
* Add parse repack, proper level to recent search flow
|
* Add parse repack, proper level to recent search flow
|
||||||
* Change reenable Trakt Notifier to update collections at end of PP
|
* Change reenable Trakt Notifier to update collections at end of PP
|
||||||
|
* Fix NotifierFactory attribute enabled_ondownloadsubtitles should be enabled_onsubtitlesdownload
|
||||||
|
|
||||||
|
|
||||||
### 0.12.37 (2017-11-12 10:35:00 UTC)
|
### 0.12.37 (2017-11-12 10:35:00 UTC)
|
||||||
|
|
|
@ -143,7 +143,7 @@ def notify_download(ep_name):
|
||||||
|
|
||||||
|
|
||||||
def notify_subtitle_download(ep_name, lang):
|
def notify_subtitle_download(ep_name, lang):
|
||||||
for n in NotifierFactory().get_enabled('ondownloadsubtitles'):
|
for n in NotifierFactory().get_enabled('onsubtitledownload'):
|
||||||
n.notify_subtitle_download(ep_name, lang)
|
n.notify_subtitle_download(ep_name, lang)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1682,7 +1682,12 @@ class TVEpisode(object):
|
||||||
newsubtitles = set(self.subtitles).difference(set(previous_subtitles))
|
newsubtitles = set(self.subtitles).difference(set(previous_subtitles))
|
||||||
|
|
||||||
if newsubtitles:
|
if newsubtitles:
|
||||||
subtitleList = ", ".join(subliminal.language.Language(x).name for x in newsubtitles)
|
try:
|
||||||
|
subtitleList = ", ".join(subliminal.language.Language(x).name for x in newsubtitles)
|
||||||
|
except(StandardError, Exception):
|
||||||
|
logger.log('Could not parse a language to use to fetch subtitles for episode %sx%s' %
|
||||||
|
(self.season, self.episode), logger.DEBUG)
|
||||||
|
return
|
||||||
logger.log('%s: Downloaded %s subtitles for episode %sx%s' %
|
logger.log('%s: Downloaded %s subtitles for episode %sx%s' %
|
||||||
(self.show.indexerid, subtitleList, self.season, self.episode), logger.DEBUG)
|
(self.show.indexerid, subtitleList, self.season, self.episode), logger.DEBUG)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue