From 94ec9e6e6b18096c984be69540908881ba997f96 Mon Sep 17 00:00:00 2001 From: echel0n Date: Fri, 22 Aug 2014 08:43:38 -0700 Subject: [PATCH] Adds additional scoring for series number and series event name parser matches to help determine valid show info --- sickbeard/name_parser/parser.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sickbeard/name_parser/parser.py b/sickbeard/name_parser/parser.py index d57ea2ba..08cd2890 100644 --- a/sickbeard/name_parser/parser.py +++ b/sickbeard/name_parser/parser.py @@ -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):