1
0
mirror of https://github.com/moparisthebest/SickRage synced 2024-11-15 13:55:05 -05:00

Fixing error in findpropers when air-by-date search is attempted, but show is not air-by-date

This commit is contained in:
Nils Vogels 2014-05-05 01:10:51 +02:00
parent 4e03a2b925
commit d1d9025971

View File

@ -182,7 +182,8 @@ class ProperFinder():
logger.log( logger.log(
u"Looks like this is an air-by-date or sports show, attempting to convert the date to season/episode", u"Looks like this is an air-by-date or sports show, attempting to convert the date to season/episode",
logger.DEBUG) logger.DEBUG)
airdate = curProper.airdate.toordinal() if curProper.airdate:
airdate = curProper.airdate.toordinal()
myDB = db.DBConnection() myDB = db.DBConnection()
sql_result = myDB.select( sql_result = myDB.select(
"SELECT season, episode FROM tv_episodes WHERE showid = ? and indexer = ? and airdate = ?", "SELECT season, episode FROM tv_episodes WHERE showid = ? and indexer = ? and airdate = ?",