From 6709ebdf129aed59a00c2879c5dea9e92f69d2f3 Mon Sep 17 00:00:00 2001 From: echel0n Date: Sun, 18 May 2014 08:57:07 -0700 Subject: [PATCH] Fixed issues with daily searcher --- sickbeard/dailysearcher.py | 2 +- sickbeard/search.py | 2 -- sickbeard/tv.py | 3 ++- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/sickbeard/dailysearcher.py b/sickbeard/dailysearcher.py index dadf036b..19e7af9f 100644 --- a/sickbeard/dailysearcher.py +++ b/sickbeard/dailysearcher.py @@ -47,7 +47,7 @@ class DailySearcher(): curDate = datetime.date.today() - datetime.timedelta(weeks=1) myDB = db.DBConnection() - sqlResults = myDB.select("SELECT * FROM tv_episodes WHERE (status = ? OR status = ?) AND airdate < ?", + sqlResults = myDB.select("SELECT * FROM tv_episodes WHERE status in (?,?) AND airdate > ?", [common.UNAIRED, common.WANTED, curDate.toordinal()]) todaysEps = {} diff --git a/sickbeard/search.py b/sickbeard/search.py index a969d9ad..6a63ffa1 100644 --- a/sickbeard/search.py +++ b/sickbeard/search.py @@ -339,7 +339,6 @@ def searchForNeededEpisodes(queueItem): break except Exception, e: logger.log(u"Error while searching " + curProvider.name + ", skipping: " + ex(e), logger.ERROR) - logger.log(traceback.format_exc(), logger.DEBUG) if curProviderCount != len(providers): continue break @@ -421,7 +420,6 @@ def searchProviders(queueItem, show, season, episodes, manualSearch=False): break except Exception, e: logger.log(u"Error while searching " + provider.name + ", skipping: " + ex(e), logger.ERROR) - logger.log(traceback.format_exc(), logger.DEBUG) break if len(searchResults): diff --git a/sickbeard/tv.py b/sickbeard/tv.py index 833af807..4f265ce0 100644 --- a/sickbeard/tv.py +++ b/sickbeard/tv.py @@ -1068,7 +1068,8 @@ class TVShow(object): if self.status: toReturn += "status: " + self.status + "\n" toReturn += "startyear: " + str(self.startyear) + "\n" - toReturn += "genre: " + self.genre + "\n" + if self.genre: + toReturn += "genre: " + self.genre + "\n" toReturn += "classification: " + self.classification + "\n" toReturn += "runtime: " + str(self.runtime) + "\n" toReturn += "quality: " + str(self.quality) + "\n"