diff --git a/sickbeard/search.py b/sickbeard/search.py index 50d4a442..9ffdd89a 100644 --- a/sickbeard/search.py +++ b/sickbeard/search.py @@ -294,17 +294,16 @@ def filterSearchResults(show, results): foundResults = {} # make a list of all the results for this provider - for curEp in results.keys(): + for curEp in results: # skip non-tv crap results[curEp] = filter( lambda x: show_name_helpers.filterBadReleases(x.name) and show_name_helpers.isGoodResult(x.name, show), results[curEp]) - if len(results[curEp]): - if curEp in foundResults: - foundResults[curEp] += results[curEp] - else: - foundResults[curEp] = results[curEp] + if curEp in foundResults: + foundResults[curEp] += results[curEp] + else: + foundResults[curEp] = results[curEp] return foundResults diff --git a/sickbeard/search_queue.py b/sickbeard/search_queue.py index 357da7aa..c7dbc870 100644 --- a/sickbeard/search_queue.py +++ b/sickbeard/search_queue.py @@ -133,7 +133,7 @@ class BacklogQueueItem(generic_queue.QueueItem): generic_queue.QueueItem.__init__(self, 'Backlog', BACKLOG_SEARCH) self.priority = generic_queue.QueuePriorities.LOW self.thread_name = 'BACKLOG-' + str(show.indexerid) + '-' - + self.success = None self.show = show self.segment = segment self.wantedEpisodes = []