Fixed issues with daily searcher

This commit is contained in:
echel0n 2014-05-18 08:57:07 -07:00
parent f8a8f4c5b4
commit 6709ebdf12
3 changed files with 3 additions and 4 deletions

View file

@ -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 = {}

View file

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

View file

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