strip '"<>() from <title> words when checking for title/url difference

This commit is contained in:
jesopo 2019-10-28 12:25:23 +00:00
parent 74d9bf4da3
commit 07a3ba5222

View file

@ -26,7 +26,8 @@ class Module(ModuleManager.BaseModule):
title_words = [] title_words = []
for title_word in RE_WORDSPLIT.split(title): for title_word in RE_WORDSPLIT.split(title):
if len(title_word) > 1 or title_word.isalpha(): if len(title_word) > 1 or title_word.isalpha():
title_words.append(title_word.lower()) title_word = title_word.lower()
title_words.append(title_word.strip("'\"<>()"))
present = 0 present = 0
for title_word in title_words: for title_word in title_words: