1
0
mirror of https://github.com/moparisthebest/SickRage synced 2024-12-12 19:12:26 -05:00

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,6 +943,10 @@ class PostProcessor(object):
sql_l.append(cur_ep.get_sql())
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:
@ -950,11 +954,6 @@ class PostProcessor(object):
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)
# find the destination folder
try:
proper_path = ep_obj.proper_path()

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 = {}