1
0
mirror of https://github.com/moparisthebest/SickRage synced 2024-11-17 06:45:05 -05:00

Fix for failed downloads

This commit is contained in:
echel0n 2014-05-12 06:31:37 -07:00
parent a77d8c1fcb
commit 72278cfcb2
2 changed files with 2 additions and 9 deletions

View File

@ -309,14 +309,9 @@ def filterSearchResults(show, results):
return foundResults
def searchProviders(queueItem, show, season, episodes, seasonSearch=False, manualSearch=False):
if show:
logger.log(u"Searching for stuff we need from " + show.name + " season " + str(season))
else:
logger.log(u"Attempting to search for stuff from nonexistent show. Failing.", logger.ERROR)
return False
finalResults = []
didSearch = False
providers = [x for x in sickbeard.providers.sortedProviderList() if x.isActive()]

View File

@ -270,13 +270,11 @@ class FailedQueueItem(generic_queue.QueueItem):
failed_history.revertEpisode(self.show, epObj.season, epObj.episode)
episodes.append(epObj)
providers = [x for x in sickbeard.providers.sortedProviderList() if x.isActive()]
try:
logger.log(
"Beginning failed download search for episodes from Season [" + str(self.episodes[0].season) + "]")
searchResult = search.searchProviders(self.show, self.episodes[0].season, self.episodes, False, True)
searchResult = search.searchProviders(self, self.show, self.episodes[0].season, self.episodes, False, True)
if searchResult:
self.success = SearchQueue().snatch_item(searchResult)