Merge branch 'dev' of github.com:echel0n/SickRage into dev

This commit is contained in:
Nils Vogels 2014-05-26 23:33:27 +02:00
commit c217a4fc57
1 changed files with 6 additions and 4 deletions

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