mirror of
https://github.com/moparisthebest/SickRage
synced 2024-12-12 11:02:21 -05:00
Fixed issues with daily searcher
This commit is contained in:
parent
f8a8f4c5b4
commit
6709ebdf12
@ -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 = {}
|
||||
|
@ -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):
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user