mirror of
https://github.com/SickGear/SickGear.git
synced 2024-12-01 00:43:37 +00:00
Fix for sports shows.
This commit is contained in:
parent
459b201b9a
commit
f340f9b073
5 changed files with 5 additions and 5 deletions
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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 = ?",
|
||||
|
|
|
@ -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 = ?",
|
||||
|
|
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue