mirror of
https://github.com/moparisthebest/SickRage
synced 2024-12-12 19:12:26 -05:00
Fixed for failed downloads issue list index out of range
This commit is contained in:
parent
d2b4ad526d
commit
98e1d67cf9
@ -268,18 +268,19 @@ class FailedQueueItem(generic_queue.QueueItem):
|
|||||||
failed_history.revertEpisode(epObj)
|
failed_history.revertEpisode(epObj)
|
||||||
failed_episodes.append(epObj)
|
failed_episodes.append(epObj)
|
||||||
|
|
||||||
try:
|
if len(failed_episodes):
|
||||||
logger.log(
|
try:
|
||||||
"Beginning failed download search for episodes from Season [" + str(self.episodes[0].season) + "]")
|
logger.log(
|
||||||
|
"Beginning failed download search for episodes from Season [" + str(self.episodes[0].season) + "]")
|
||||||
|
|
||||||
searchResult = search.searchProviders(self, self.show, failed_episodes[0].season, failed_episodes, False, True)
|
searchResult = search.searchProviders(self, self.show, failed_episodes[0].season, failed_episodes, False, True)
|
||||||
if searchResult:
|
if searchResult:
|
||||||
self.success = SearchQueue().snatch_item(searchResult)
|
self.success = SearchQueue().snatch_item(searchResult)
|
||||||
|
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
logger.log(traceback.format_exc(), logger.DEBUG)
|
logger.log(traceback.format_exc(), logger.DEBUG)
|
||||||
|
|
||||||
if not self.success:
|
if not self.success:
|
||||||
logger.log(u"No needed episodes found on the RSS feeds")
|
logger.log(u"No episodes found to retry for failed downloads return from providers!")
|
||||||
|
|
||||||
self.finish()
|
self.finish()
|
Loading…
Reference in New Issue
Block a user