mirror of
https://github.com/SickGear/SickGear.git
synced 2025-01-07 10:33:38 +00:00
Fixed search pattern for checking ignored and required words in release names
This commit is contained in:
parent
9714fc3299
commit
16ae4c1db7
1 changed files with 1 additions and 1 deletions
|
@ -177,7 +177,7 @@ def filter_release_name(name, filter_words):
|
||||||
Returns: False if the release name is OK, True if it contains one of the filter_words
|
Returns: False if the release name is OK, True if it contains one of the filter_words
|
||||||
"""
|
"""
|
||||||
if filter_words:
|
if filter_words:
|
||||||
filters = [re.compile('(^|[\W_])%s($|[\W_])' % filter.strip(), re.I) for filter in filter_words.split(',')]
|
filters = [re.compile('.*%s.*' % filter.strip(), re.I) for filter in filter_words.split(',')]
|
||||||
for regfilter in filters:
|
for regfilter in filters:
|
||||||
if regfilter.search(name):
|
if regfilter.search(name):
|
||||||
logger.log(u"" + name + " contains pattern: " + regfilter.pattern, logger.DEBUG)
|
logger.log(u"" + name + " contains pattern: " + regfilter.pattern, logger.DEBUG)
|
||||||
|
|
Loading…
Reference in a new issue