mirror of
https://github.com/moparisthebest/SickRage
synced 2024-11-17 06:45:05 -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:
parent
0fddbac1c4
commit
94ec9e6e6b
@ -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 New Issue
Block a user