From 69e9d10ad85ab755430562fbc9ac06c300e14481 Mon Sep 17 00:00:00 2001 From: Michel Roux Date: Wed, 12 Feb 2020 17:35:10 +0100 Subject: [PATCH] Fix search (again) --- connectors.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/connectors.py b/connectors.py index c84b29f..f3df991 100644 --- a/connectors.py +++ b/connectors.py @@ -248,7 +248,7 @@ class Nyaa(Connector): url = urls[0] has_comment = False - if any(url.string.find(word) for word in self.blacklist_words): + if any(word in url.string for word in self.blacklist_words): continue valid_trs = valid_trs + 1 @@ -315,7 +315,7 @@ class Pantsu(Connector): url = tds[1].a url_safe = ''.join(url.strings) - if any(url_safe.find(word) for word in self.blacklist_words): + if any(word in url_safe for word in self.blacklist_words): continue valid_trs = valid_trs + 1 @@ -401,7 +401,7 @@ class YggTorrent(Connector): if check_downloads or check_seeds: url = tds[1].a - if any(url.string.find(word) for word in self.blacklist_words): + if any(word in url.string for word in self.blacklist_words): continue valid_trs = valid_trs + 1