1
0
mirror of https://github.com/moparisthebest/SickRage synced 2024-08-13 16:53:54 -04:00

Fixed naming issues for sports and air-by-date shows.

This commit is contained in:
echel0n 2014-07-30 14:42:52 -07:00
parent 7b187c3add
commit 818536fcb4

View File

@ -167,7 +167,6 @@ class NameParser(object):
if 'sports_air_date' in named_groups:
sports_air_date = match.group('sports_air_date')
if result.show and result.show.is_sports:
try:
result.sports_air_date = parser.parse(sports_air_date, fuzzy=True).date()
result.score += 1
@ -175,7 +174,6 @@ class NameParser(object):
continue
if 'air_year' in named_groups and 'air_month' in named_groups and 'air_day' in named_groups:
if result.show and result.show.air_by_date:
year = int(match.group('air_year'))
month = int(match.group('air_month'))
day = int(match.group('air_day'))