mirror of
https://github.com/SickGear/SickGear.git
synced 2025-01-05 17:43:37 +00:00
Fixes issue with daily searcher constantly showing it's in progress when in fact it is not from manage searches page.
This commit is contained in:
parent
840f7c7bdf
commit
347f595dfe
1 changed files with 6 additions and 4 deletions
|
@ -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 ...")
|
||||
logger.log(u"Could not find any needed episodes to search for ...")
|
||||
|
||||
self.amActive = False
|
Loading…
Reference in a new issue