mirror of
https://github.com/moparisthebest/SickRage
synced 2024-12-12 11:02:21 -05:00
Fix for failed downloads
This commit is contained in:
parent
a77d8c1fcb
commit
72278cfcb2
@ -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
|
||||
logger.log(u"Searching for stuff we need from " + show.name + " season " + str(season))
|
||||
|
||||
finalResults = []
|
||||
didSearch = False
|
||||
|
||||
providers = [x for x in sickbeard.providers.sortedProviderList() if x.isActive()]
|
||||
|
||||
|
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user