From 72278cfcb26f89f80c3fcbc5b7c011e535108991 Mon Sep 17 00:00:00 2001 From: echel0n Date: Mon, 12 May 2014 06:31:37 -0700 Subject: [PATCH] Fix for failed downloads --- sickbeard/search.py | 7 +------ sickbeard/search_queue.py | 4 +--- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/sickbeard/search.py b/sickbeard/search.py index bf61bf7a..50d4a442 100644 --- a/sickbeard/search.py +++ b/sickbeard/search.py @@ -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()] diff --git a/sickbeard/search_queue.py b/sickbeard/search_queue.py index db870656..691cfa7a 100644 --- a/sickbeard/search_queue.py +++ b/sickbeard/search_queue.py @@ -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)