lower() in check excluded words
This commit is contained in:
@@ -102,7 +102,7 @@ class Worker:
|
||||
if len(excluded_words) > 0:
|
||||
for word in excluded_words.split(","):
|
||||
logging.info("EXCLUDER: Checking '" + word + "' for title: '" + title)
|
||||
if word in title or word in description:
|
||||
if word.lower() in title.lower() or word.lower() in description.lower():
|
||||
logging.info("EXCLUDE!")
|
||||
return True
|
||||
return False
|
||||
@@ -111,7 +111,7 @@ class Worker:
|
||||
if len(excluded_words) > 0:
|
||||
for word in excluded_words.split(","):
|
||||
logging.info("Checking '" + word + "' for title: '" + title)
|
||||
if word in title:
|
||||
if word.lower() in title.lower():
|
||||
return True
|
||||
return False
|
||||
|
||||
|
||||
Reference in New Issue
Block a user