mirror of
https://github.com/SickGear/SickGear.git
synced 2025-01-07 10:33:38 +00:00
Fixed regex matching in filterBadReleases function, was to restrictive causing valid releases to be invalid by SB
This commit is contained in:
parent
e3a843a823
commit
d5053ef8d3
1 changed files with 15 additions and 15 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue