From 347f595dfe4c52799f3e6bc02232ba5abcbfaa2a Mon Sep 17 00:00:00 2001 From: echel0n Date: Mon, 26 May 2014 14:20:31 -0700 Subject: [PATCH] Fixes issue with daily searcher constantly showing it's in progress when in fact it is not from manage searches page. --- sickbeard/dailysearcher.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/sickbeard/dailysearcher.py b/sickbeard/dailysearcher.py index f20c26a9..b129dc26 100644 --- a/sickbeard/dailysearcher.py +++ b/sickbeard/dailysearcher.py @@ -54,12 +54,12 @@ class DailySearcher(): show = helpers.findCertainShow(sickbeard.showList, int(sqlEp["showid"])) except exceptions.MultipleShowObjectsException: logger.log(u"ERROR: expected to find a single show matching " + sqlEp["showid"]) - return None + break - if show == None: + if not show: logger.log(u"Unable to find the show with ID " + str( sqlEp["showid"]) + " in your show list! DB value was " + str(sqlEp), logger.ERROR) - return None + break ep = show.getEpisode(sqlEp["season"], sqlEp["episode"]) with ep.lock: @@ -88,4 +88,6 @@ class DailySearcher(): dailysearch_queue_item = sickbeard.search_queue.DailySearchQueueItem(show, segment) sickbeard.searchQueueScheduler.action.add_item(dailysearch_queue_item) else: - logger.log(u"Could not find any needed episodes to search for ...") \ No newline at end of file + logger.log(u"Could not find any needed episodes to search for ...") + + self.amActive = False \ No newline at end of file