1
0
mirror of https://github.com/moparisthebest/SickRage synced 2024-12-12 11:02:21 -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:
echel0n 2014-05-26 14:20:31 -07:00
parent 840f7c7bdf
commit 347f595dfe

View File

@ -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