1
0
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:
echel0n 2014-08-09 10:59:39 +00:00
parent 9ac23ae707
commit dfc18b8d54

View File

@ -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(