mirror of
https://github.com/SickGear/SickGear.git
synced 2024-12-03 01:43:37 +00:00
Fixed issues with daily searcher
This commit is contained in:
parent
f8a8f4c5b4
commit
6709ebdf12
3 changed files with 3 additions and 4 deletions
|
@ -47,7 +47,7 @@ class DailySearcher():
|
||||||
curDate = datetime.date.today() - datetime.timedelta(weeks=1)
|
curDate = datetime.date.today() - datetime.timedelta(weeks=1)
|
||||||
|
|
||||||
myDB = db.DBConnection()
|
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()])
|
[common.UNAIRED, common.WANTED, curDate.toordinal()])
|
||||||
|
|
||||||
todaysEps = {}
|
todaysEps = {}
|
||||||
|
|
|
@ -339,7 +339,6 @@ def searchForNeededEpisodes(queueItem):
|
||||||
break
|
break
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
logger.log(u"Error while searching " + curProvider.name + ", skipping: " + ex(e), logger.ERROR)
|
logger.log(u"Error while searching " + curProvider.name + ", skipping: " + ex(e), logger.ERROR)
|
||||||
logger.log(traceback.format_exc(), logger.DEBUG)
|
|
||||||
if curProviderCount != len(providers):
|
if curProviderCount != len(providers):
|
||||||
continue
|
continue
|
||||||
break
|
break
|
||||||
|
@ -421,7 +420,6 @@ def searchProviders(queueItem, show, season, episodes, manualSearch=False):
|
||||||
break
|
break
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
logger.log(u"Error while searching " + provider.name + ", skipping: " + ex(e), logger.ERROR)
|
logger.log(u"Error while searching " + provider.name + ", skipping: " + ex(e), logger.ERROR)
|
||||||
logger.log(traceback.format_exc(), logger.DEBUG)
|
|
||||||
break
|
break
|
||||||
|
|
||||||
if len(searchResults):
|
if len(searchResults):
|
||||||
|
|
|
@ -1068,6 +1068,7 @@ class TVShow(object):
|
||||||
if self.status:
|
if self.status:
|
||||||
toReturn += "status: " + self.status + "\n"
|
toReturn += "status: " + self.status + "\n"
|
||||||
toReturn += "startyear: " + str(self.startyear) + "\n"
|
toReturn += "startyear: " + str(self.startyear) + "\n"
|
||||||
|
if self.genre:
|
||||||
toReturn += "genre: " + self.genre + "\n"
|
toReturn += "genre: " + self.genre + "\n"
|
||||||
toReturn += "classification: " + self.classification + "\n"
|
toReturn += "classification: " + self.classification + "\n"
|
||||||
toReturn += "runtime: " + str(self.runtime) + "\n"
|
toReturn += "runtime: " + str(self.runtime) + "\n"
|
||||||
|
|
Loading…
Reference in a new issue