Fixed regex matching in filterBadReleases function, was to restrictive causing valid releases to be invalid by SB

This commit is contained in:
echel0n 2014-03-21 02:20:46 -07:00
parent e3a843a823
commit d5053ef8d3

View file

@ -69,7 +69,7 @@ def filterBadReleases(name):
# if any of the bad strings are in the name then say no
for x in resultFilters + sickbeard.IGNORE_WORDS.split(','):
if re.search('(^|[\W_])' + x.strip() + '($|[\W_])', name, re.I):
if re.search('(^|[\s_])' + x.strip() + '($|[\s_])', name, re.I):
logger.log(u"Invalid scene release: " + name + " contains " + x + ", ignoring it", logger.DEBUG)
return False