1
0
mirror of https://github.com/moparisthebest/SickRage synced 2024-11-17 14:55:07 -05:00

Update show_name_helpers.py

Fix for issue #10
This commit is contained in:
echel0n 2014-03-18 16:49:58 -07:00
parent 11f9a891f0
commit c0dedd080f

View File

@ -199,7 +199,7 @@ def isGoodResult(name, show, log=True):
'(?:\d{4}\W\d\d\W\d\d)|' \ '(?:\d{4}\W\d\d\W\d\d)|' \
'(?:(?:part|pt)[\._ -]?(\d|[ivx]))|' \ '(?:(?:part|pt)[\._ -]?(\d|[ivx]))|' \
'Season\W+\d+\W+|E\d+\W+)|' \ 'Season\W+\d+\W+|E\d+\W+)|' \
'((.+?)[. _-]+)(\d{1,2}[a-zA-Z]{2})[. _-]+([a-zA-Z]{3,})[. _-]+(\d{4})*(.+?)([. _-])()((([^- ]+))?)?$' '((.+)[. _-]+)(\d{1,2}[a-zA-Z]{2})[. _-]+([a-zA-Z]{3,})[. _-]+(\d{4})*(.+)([. _-])()((([^- ]+))?)?$'
if log: if log:
logger.log(u"Checking if show " + name + " matches " + curRegex, logger.DEBUG) logger.log(u"Checking if show " + name + " matches " + curRegex, logger.DEBUG)