From cefa2aec202c8c3e28c7e5c67c1bb109d1cf8274 Mon Sep 17 00:00:00 2001 From: kifixo Date: Mon, 19 Dec 2022 23:04:42 +0100 Subject: [PATCH] Improving word ad excluder --- worker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/worker.py b/worker.py index 24b2a3c..bf2c12f 100644 --- a/worker.py +++ b/worker.py @@ -94,7 +94,7 @@ class Worker: def is_title_key_word_excluded(self, title, excluded_words): for word in excluded_words: print("Checking '" + word + "' for title: '" + title) - if word in title.split()[0]: + if word in title: return True return False