mirror of
https://github.com/moparisthebest/SickRage
synced 2024-12-14 12:02:21 -05:00
Fix for sports shows.
This commit is contained in:
parent
459b201b9a
commit
f340f9b073
@ -483,7 +483,7 @@ class PostProcessor(object):
|
|||||||
episodes = [parse_result.air_date]
|
episodes = [parse_result.air_date]
|
||||||
elif parse_result.is_sports:
|
elif parse_result.is_sports:
|
||||||
season = -1
|
season = -1
|
||||||
episodes = [parse_result.is_sports_air_date]
|
episodes = [parse_result.sports_air_date]
|
||||||
else:
|
else:
|
||||||
season = parse_result.season_number
|
season = parse_result.season_number
|
||||||
episodes = parse_result.episode_numbers
|
episodes = parse_result.episode_numbers
|
||||||
|
@ -158,7 +158,7 @@ class ProperFinder():
|
|||||||
continue
|
continue
|
||||||
|
|
||||||
# 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 (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(
|
logger.log(
|
||||||
u"Looks like this is an air-by-date or sports show, attempting to convert the date to season/episode",
|
u"Looks like this is an air-by-date or sports show, attempting to convert the date to season/episode",
|
||||||
logger.DEBUG)
|
logger.DEBUG)
|
||||||
|
@ -333,7 +333,7 @@ class GenericProvider:
|
|||||||
logger.DEBUG)
|
logger.DEBUG)
|
||||||
continue
|
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()
|
myDB = db.DBConnection()
|
||||||
sql_results = myDB.select(
|
sql_results = myDB.select(
|
||||||
"SELECT season, episode FROM tv_episodes WHERE showid = ? AND airdate = ?",
|
"SELECT season, episode FROM tv_episodes WHERE showid = ? AND airdate = ?",
|
||||||
|
@ -639,7 +639,7 @@ class TVShow(object):
|
|||||||
logger.log(
|
logger.log(
|
||||||
u"Looks like this is an air-by-date or sports show, attempting to convert the date to season/episode",
|
u"Looks like this is an air-by-date or sports show, attempting to convert the date to season/episode",
|
||||||
logger.DEBUG)
|
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()
|
myDB = db.DBConnection()
|
||||||
sql_result = myDB.select(
|
sql_result = myDB.select(
|
||||||
"SELECT season, episode FROM tv_episodes WHERE showid = ? and indexer = ? and airdate = ?",
|
"SELECT season, episode FROM tv_episodes WHERE showid = ? and indexer = ? and airdate = ?",
|
||||||
|
@ -253,7 +253,7 @@ class TVCache():
|
|||||||
|
|
||||||
season = episodes = None
|
season = episodes = None
|
||||||
if parse_result.is_air_by_date or parse_result.is_sports:
|
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()
|
myDB = db.DBConnection()
|
||||||
sql_results = myDB.select(
|
sql_results = myDB.select(
|
||||||
|
Loading…
Reference in New Issue
Block a user