lower() in check excluded words

This commit is contained in:
Joan
2023-03-14 11:24:41 +01:00
parent d4d398db58
commit 4e509790ec

View File

@@ -102,7 +102,7 @@ class Worker:
if len(excluded_words) > 0: if len(excluded_words) > 0:
for word in excluded_words.split(","): for word in excluded_words.split(","):
logging.info("EXCLUDER: Checking '" + word + "' for title: '" + title) 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!") logging.info("EXCLUDE!")
return True return True
return False return False
@@ -111,7 +111,7 @@ class Worker:
if len(excluded_words) > 0: if len(excluded_words) > 0:
for word in excluded_words.split(","): for word in excluded_words.split(","):
logging.info("Checking '" + word + "' for title: '" + title) logging.info("Checking '" + word + "' for title: '" + title)
if word in title: if word.lower() in title.lower():
return True return True
return False return False