Private GIT

Skip to content
Snippets Groups Projects
Commit 25bbefec authored by Fernando's avatar Fernando Committed by fernandog
Browse files

Show user that subtitle limit was reached

@medariox @Labrys suggestions?
parent d55e2a05
No related branches found
No related tags found
No related merge requests found
...@@ -464,9 +464,6 @@ class SubtitlesFinder(object): ...@@ -464,9 +464,6 @@ class SubtitlesFinder(object):
% (ep_to_sub['show_name'], ep_to_sub['season'], ep_to_sub['episode']), logger.DEBUG) % (ep_to_sub['show_name'], ep_to_sub['season'], ep_to_sub['episode']), logger.DEBUG)
continue continue
logger.log(u"%s S%02dE%02d doesn't have all needed subtitles"
% (ep_to_sub['show_name'], ep_to_sub['season'], ep_to_sub['episode']), logger.DEBUG)
try: try:
try: try:
lastsearched = datetime.datetime.strptime(ep_to_sub['lastsearch'], dateTimeFormat) lastsearched = datetime.datetime.strptime(ep_to_sub['lastsearch'], dateTimeFormat)
...@@ -478,7 +475,7 @@ class SubtitlesFinder(object): ...@@ -478,7 +475,7 @@ class SubtitlesFinder(object):
(ep_to_sub['airdate_daydiff'] <= 7 and ep_to_sub['searchcount'] < 7 and (ep_to_sub['airdate_daydiff'] <= 7 and ep_to_sub['searchcount'] < 7 and
now - lastsearched > datetime.timedelta(hours=rules['new'][ep_to_sub['searchcount']]))): now - lastsearched > datetime.timedelta(hours=rules['new'][ep_to_sub['searchcount']]))):
logger.log(u'Started subtitles search for %s S%02dE%02d' logger.log(u'Started missed subtitles search for %s S%02dE%02d'
% (ep_to_sub['show_name'], ep_to_sub['season'], ep_to_sub['episode']), logger.INFO) % (ep_to_sub['show_name'], ep_to_sub['season'], ep_to_sub['episode']), logger.INFO)
show_object = Show.find(sickbeard.showList, int(ep_to_sub['showid'])) show_object = Show.find(sickbeard.showList, int(ep_to_sub['showid']))
...@@ -507,6 +504,10 @@ class SubtitlesFinder(object): ...@@ -507,6 +504,10 @@ class SubtitlesFinder(object):
logger.log(u'Downloaded %s subtitles for %s S%02dE%02d' logger.log(u'Downloaded %s subtitles for %s S%02dE%02d'
% (', '.join(new_subtitles), ep_to_sub['show_name'], % (', '.join(new_subtitles), ep_to_sub['show_name'],
ep_to_sub["season"], ep_to_sub["episode"])) ep_to_sub["season"], ep_to_sub["episode"]))
else:
logger.log(u"Subtitle search limit reached for %s S%02dE%02d"
% (ep_to_sub['show_name'], ep_to_sub['season'], ep_to_sub['episode']), logger.INFO)
except Exception as error: except Exception as error:
logger.log(u'Error while searching subtitles for %s S%02dE%02d. Error: %r' logger.log(u'Error while searching subtitles for %s S%02dE%02d. Error: %r'
% (ep_to_sub['show_name'], ep_to_sub['season'], ep_to_sub['episode'], % (ep_to_sub['show_name'], ep_to_sub['season'], ep_to_sub['episode'],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment