mirror of
https://github.com/moparisthebest/SickRage
synced 2024-12-13 11:32:20 -05: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
@ -54,12 +54,12 @@ class DailySearcher():
|
|||||||
show = helpers.findCertainShow(sickbeard.showList, int(sqlEp["showid"]))
|
show = helpers.findCertainShow(sickbeard.showList, int(sqlEp["showid"]))
|
||||||
except exceptions.MultipleShowObjectsException:
|
except exceptions.MultipleShowObjectsException:
|
||||||
logger.log(u"ERROR: expected to find a single show matching " + sqlEp["showid"])
|
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(
|
logger.log(u"Unable to find the show with ID " + str(
|
||||||
sqlEp["showid"]) + " in your show list! DB value was " + str(sqlEp), logger.ERROR)
|
sqlEp["showid"]) + " in your show list! DB value was " + str(sqlEp), logger.ERROR)
|
||||||
return None
|
break
|
||||||
|
|
||||||
ep = show.getEpisode(sqlEp["season"], sqlEp["episode"])
|
ep = show.getEpisode(sqlEp["season"], sqlEp["episode"])
|
||||||
with ep.lock:
|
with ep.lock:
|
||||||
@ -88,4 +88,6 @@ class DailySearcher():
|
|||||||
dailysearch_queue_item = sickbeard.search_queue.DailySearchQueueItem(show, segment)
|
dailysearch_queue_item = sickbeard.search_queue.DailySearchQueueItem(show, segment)
|
||||||
sickbeard.searchQueueScheduler.action.add_item(dailysearch_queue_item)
|
sickbeard.searchQueueScheduler.action.add_item(dailysearch_queue_item)
|
||||||
else:
|
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 New Issue
Block a user