From ca4fe51b973def98dd27dce856778b5ac52b499a Mon Sep 17 00:00:00 2001 From: echel0n Date: Fri, 22 Aug 2014 01:06:37 -0700 Subject: [PATCH] Added scene_sports_format regex pattern to help match sports shows --- sickbeard/name_parser/regexes.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/sickbeard/name_parser/regexes.py b/sickbeard/name_parser/regexes.py index c701ec40..ea054265 100644 --- a/sickbeard/name_parser/regexes.py +++ b/sickbeard/name_parser/regexes.py @@ -94,6 +94,20 @@ normal_regexes = [ -(?P[^- ]+([. _-]\[.*\])?))?)?$ # Group '''), + ('scene_sports_format', + # Show.Name.100.Event.2010.11.23.Source.Quality.Etc-Group + # Show.Name.2010.11.23.Source.Quality.Etc-Group + # Show Name - 2010-11-23 - Ep Name + ''' + ^(?P(UEFA|MLB|ESPN|WWE|MMA|UFC|TNA|EPL|NASCAR|NBA|NFL|NHL|NRL|PGA|SUPER LEAGUE|FORMULA|FIFA|NETBALL|MOTOGP))[. _-]+ + ((?P\d+)[. _-]+)? # Show_Number and seperator + ((?P.+?)[. _-]+)? # Show_Event and seperator + (?P(\d{4}[. _-]+\d{1,2}[. _-]+\d{1,2})|(\d{1,2}\w{2}[. _-]+\w+[. _-]+\d{4})|(\w+[. _-]+\d{1,2}\w{2}[. _-]+\d{4})) + [. _-]*((?P.+?) # Source_Quality_Etc- + ((?[^- ]+([. _-]\[.*\])?))?)?$ # Group + '''), + ('stupid', # tpz-abc102 '''