From 3d454979dbb9eeca517171fb2a11f2bc8b891e83 Mon Sep 17 00:00:00 2001 From: echel0n Date: Sat, 29 Nov 2014 02:42:40 -0800 Subject: [PATCH] Fix for issue #928 - Regex updated to take into account possible parentheses surrounding the season/episode numbers in searches --- sickbeard/name_parser/regexes.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sickbeard/name_parser/regexes.py b/sickbeard/name_parser/regexes.py index e36988cd..3a973c37 100644 --- a/sickbeard/name_parser/regexes.py +++ b/sickbeard/name_parser/regexes.py @@ -56,10 +56,10 @@ normal_regexes = [ # Show.Name.S01.E02.E03 ''' ^((?P.+?)[. _-]+)? # Show_Name and separator - s(?P\d+)[. _-]* # S01 and optional separator - e(?P\d+) # E02 and separator + (\()?s(?P\d+)[. _-]* # S01 and optional separator + e(?P\d+)(\))? # E02 and separator (([. _-]*e|-) # linking e/- char - (?P(?!(1080|720|480)[pi])\d+))* # additional E03/etc + (?P(?!(1080|720|480)[pi])\d+))(\))* # additional E03/etc [. _-]*((?P.+?) # Source_Quality_Etc- ((?[^- ]+([. _-]\[.*\])?))?)?$ # Group