mirror of
https://github.com/SickGear/SickGear.git
synced 2025-03-16 17:47:43 +00:00
Small code change for parsing air-by-date shows to get season/episode info
This commit is contained in:
parent
9ac23ae707
commit
dfc18b8d54
1 changed files with 646 additions and 643 deletions
|
@ -242,7 +242,10 @@ class NameParser(object):
|
|||
|
||||
# if we have an air-by-date show then get the real season/episode numbers
|
||||
if bestResult.is_air_by_date or bestResult.is_sports:
|
||||
airdate = bestResult.air_date.toordinal() if bestResult.air_date else bestResult.sports_air_date.toordinal()
|
||||
try:
|
||||
airdate = bestResult.air_date.toordinal()
|
||||
except:
|
||||
airdate = bestResult.sports_air_date.toordinal()
|
||||
|
||||
myDB = db.DBConnection()
|
||||
sql_result = myDB.select(
|
||||
|
|
Loading…
Reference in a new issue