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
1 changed files with 6 additions and 0 deletions

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):