mirror of
https://github.com/SickGear/SickGear.git
synced 2024-12-01 00:43:37 +00:00
Adds additional scoring for series number and series event name parser matches to help determine valid show info
This commit is contained in:
parent
0fddbac1c4
commit
94ec9e6e6b
1 changed files with 6 additions and 0 deletions
|
@ -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):
|
||||||
|
|
Loading…
Reference in a new issue