Moved code for marking failed download successful out of loop.

Newznab providers now create season search strings for all searches as single ep search strings combined with using rage id numbers seems broken currently.
This commit is contained in:
echel0n 2014-07-21 06:44:01 -07:00
parent 5ac99b8c5c
commit 7b54611361
2 changed files with 7 additions and 7 deletions

View file

@ -943,17 +943,16 @@ class PostProcessor(object):
sql_l.append(cur_ep.get_sql())
# Just want to keep this consistent for failed handling right now
releaseName = show_name_helpers.determineReleaseName(self.folder_path, self.nzb_name)
if releaseName is not None:
failed_history.logSuccess(releaseName)
else:
self._log(u"Couldn't find release in snatch history", logger.WARNING)
if len(sql_l) > 0:
myDB = db.DBConnection()
myDB.mass_action(sql_l)
# Just want to keep this consistent for failed handling right now
releaseName = show_name_helpers.determineReleaseName(self.folder_path, self.nzb_name)
if releaseName is not None:
failed_history.logSuccess(releaseName)
else:
self._log(u"Couldn't find release in snatch history", logger.WARNING)
# find the destination folder
try:

View file

@ -114,6 +114,7 @@ class NewznabProvider(generic.NZBProvider):
return to_return
def _get_episode_search_strings(self, ep_obj, add_string=''):
return self._get_season_search_strings(ep_obj)
to_return = []
params = {}