From b5890b2af791003f383ce5fc59696df583572d1e Mon Sep 17 00:00:00 2001 From: echel0n Date: Mon, 12 May 2014 10:49:59 -0700 Subject: [PATCH] Testing season pack fix for BTN --- sickbeard/search.py | 11 +++++------ sickbeard/search_queue.py | 2 +- 2 files changed, 6 insertions(+), 7 deletions(-) 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 = []