Removed trailing whitespaces from exclusion words
This commit is contained in:
@@ -146,7 +146,7 @@ class Worker:
|
||||
if len(excluded_words) > 0:
|
||||
for word in excluded_words.split(","):
|
||||
logging.info("EXCLUDER: Checking '" + word + "' for title: '" + title)
|
||||
if word.lower() in title.lower() or word.lower() in description.lower():
|
||||
if word.lower().lstrip().rstrip() in title.lower() or word.lower().lstrip().rstrip() in description.lower():
|
||||
logging.info("EXCLUDE!")
|
||||
return True
|
||||
return False
|
||||
@@ -155,7 +155,7 @@ class Worker:
|
||||
if len(excluded_words) > 0:
|
||||
for word in excluded_words.split(","):
|
||||
logging.info("Checking '" + word + "' for title: '" + title)
|
||||
if word.lower() in title.lower():
|
||||
if word.lower().lstrip().rstrip() in title.lower():
|
||||
return True
|
||||
return False
|
||||
|
||||
|
||||
Reference in New Issue
Block a user