mirror of
https://github.com/SickGear/SickGear.git
synced 2025-01-20 16:43:43 +00:00
Fixing error in findpropers when air-by-date search is attempted, but show is not air-by-date
This commit is contained in:
parent
4e03a2b925
commit
d1d9025971
1 changed files with 2 additions and 1 deletions
|
@ -182,7 +182,8 @@ class ProperFinder():
|
|||
logger.log(
|
||||
u"Looks like this is an air-by-date or sports show, attempting to convert the date to season/episode",
|
||||
logger.DEBUG)
|
||||
airdate = curProper.airdate.toordinal()
|
||||
if curProper.airdate:
|
||||
airdate = curProper.airdate.toordinal()
|
||||
myDB = db.DBConnection()
|
||||
sql_result = myDB.select(
|
||||
"SELECT season, episode FROM tv_episodes WHERE showid = ? and indexer = ? and airdate = ?",
|
||||
|
|
Loading…
Reference in a new issue