mirror of
https://github.com/moparisthebest/SickRage
synced 2024-12-12 11:02:21 -05:00
Small code change for parsing air-by-date shows to get season/episode info
This commit is contained in:
parent
9ac23ae707
commit
dfc18b8d54
@ -242,7 +242,10 @@ class NameParser(object):
|
|||||||
|
|
||||||
# if we have an air-by-date show then get the real season/episode numbers
|
# 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:
|
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()
|
myDB = db.DBConnection()
|
||||||
sql_result = myDB.select(
|
sql_result = myDB.select(
|
||||||
|
Loading…
Reference in New Issue
Block a user