1
0
mirror of https://github.com/moparisthebest/SickRage synced 2024-12-12 11:02:21 -05:00

Adds additional scoring for series number and series event name parser matches to help determine valid show info

This commit is contained in:
echel0n 2014-08-22 08:43:38 -07:00
parent 0fddbac1c4
commit 94ec9e6e6b

View File

@ -121,6 +121,12 @@ class NameParser(object):
result.series_name = self.clean_series_name(result.series_name)
result.score += 1
if 'series_num' in named_groups and match.group('series_num'):
result.score += 1
if 'series_event' in named_groups and match.group('series_event'):
result.score += 1
if 'season_num' in named_groups:
tmp_season = int(match.group('season_num'))
if cur_regex_name == 'bare' and tmp_season in (19, 20):