mirror of
https://github.com/moparisthebest/SickRage
synced 2024-12-13 11:32:20 -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
|
return foundResults
|
||||||
|
|
||||||
def searchProviders(queueItem, show, season, episodes, seasonSearch=False, manualSearch=False):
|
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))
|
||||||
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 = []
|
finalResults = []
|
||||||
didSearch = False
|
|
||||||
|
|
||||||
providers = [x for x in sickbeard.providers.sortedProviderList() if x.isActive()]
|
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)
|
failed_history.revertEpisode(self.show, epObj.season, epObj.episode)
|
||||||
episodes.append(epObj)
|
episodes.append(epObj)
|
||||||
|
|
||||||
providers = [x for x in sickbeard.providers.sortedProviderList() if x.isActive()]
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
logger.log(
|
logger.log(
|
||||||
"Beginning failed download search for episodes from Season [" + str(self.episodes[0].season) + "]")
|
"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:
|
if searchResult:
|
||||||
self.success = SearchQueue().snatch_item(searchResult)
|
self.success = SearchQueue().snatch_item(searchResult)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user