Fix for sports shows.

This commit is contained in:
echel0n 2014-07-21 08:49:20 -07:00
parent 459b201b9a
commit f340f9b073
5 changed files with 5 additions and 5 deletions

View File

@ -483,7 +483,7 @@ class PostProcessor(object):
episodes = [parse_result.air_date]
elif parse_result.is_sports:
season = -1
episodes = [parse_result.is_sports_air_date]
episodes = [parse_result.sports_air_date]
else:
season = parse_result.season_number
episodes = parse_result.episode_numbers

View File

@ -158,7 +158,7 @@ class ProperFinder():
continue
# if we have an air-by-date show then get the real season/episode numbers
if (parse_result.is_air_by_date or parse_result.is_sports_air_date) and curProper.indexerid:
if (parse_result.is_air_by_date or parse_result.is_sports) and curProper.indexerid:
logger.log(
u"Looks like this is an air-by-date or sports show, attempting to convert the date to season/episode",
logger.DEBUG)

View File

@ -333,7 +333,7 @@ class GenericProvider:
logger.DEBUG)
continue
airdate = parse_result.air_date.toordinal() if parse_result.air_date else parse_result.is_sports_air_date.toordinal()
airdate = parse_result.air_date.toordinal() if parse_result.air_date else parse_result.sports_air_date.toordinal()
myDB = db.DBConnection()
sql_results = myDB.select(
"SELECT season, episode FROM tv_episodes WHERE showid = ? AND airdate = ?",

View File

@ -639,7 +639,7 @@ class TVShow(object):
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 = parse_result.air_date.toordinal() if parse_result.air_date else parse_result.is_sports_air_date.toordinal()
airdate = parse_result.air_date.toordinal() if parse_result.air_date else parse_result.sports_air_date.toordinal()
myDB = db.DBConnection()
sql_result = myDB.select(
"SELECT season, episode FROM tv_episodes WHERE showid = ? and indexer = ? and airdate = ?",

View File

@ -253,7 +253,7 @@ class TVCache():
season = episodes = None
if parse_result.is_air_by_date or parse_result.is_sports:
airdate = parse_result.air_date.toordinal() if parse_result.air_date else parse_result.is_sports_air_date.toordinal()
airdate = parse_result.air_date.toordinal() if parse_result.air_date else parse_result.sports_air_date.toordinal()
myDB = db.DBConnection()
sql_results = myDB.select(