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.series_name = self.clean_series_name(result.series_name)
result.score += 1 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: if 'season_num' in named_groups:
tmp_season = int(match.group('season_num')) tmp_season = int(match.group('season_num'))
if cur_regex_name == 'bare' and tmp_season in (19, 20): if cur_regex_name == 'bare' and tmp_season in (19, 20):