mirror of
https://github.com/SickGear/SickGear.git
synced 2025-01-07 10:33:38 +00:00
Merge pull request #369 from WebSpider/dev-findproper_airdate
Findproper airdate conditionals
This commit is contained in:
commit
7f862a4a74
1 changed files with 5 additions and 1 deletions
|
@ -182,7 +182,11 @@ 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()
|
||||||
|
else:
|
||||||
|
airdate = None
|
||||||
|
|
||||||
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 = ?",
|
||||||
|
|
Loading…
Reference in a new issue