summaryrefslogtreecommitdiff
path: root/searx/search/processors
diff options
context:
space:
mode:
authorAlexandre Flament <alex@al-f.net>2021-01-19 21:29:31 +0100
committerAlexandre Flament <alex@al-f.net>2021-01-19 21:29:31 +0100
commit3b7b852aa82d068b61bba2fdcc6aa03b4d1e62f6 (patch)
tree7db62a9b6856f025057fe99a1d1fa8f777833dcf /searx/search/processors
parentaa887eb375224da7253f3d98d20b922705e28df6 (diff)
downloadsearxng-3b7b852aa82d068b61bba2fdcc6aa03b4d1e62f6.tar.gz
searxng-3b7b852aa82d068b61bba2fdcc6aa03b4d1e62f6.zip
[fix] checker: minor fix about language detection
Diffstat (limited to 'searx/search/processors')
-rw-r--r--searx/search/processors/online.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/searx/search/processors/online.py b/searx/search/processors/online.py
index 0ceb0adf2..d79edd542 100644
--- a/searx/search/processors/online.py
+++ b/searx/search/processors/online.py
@@ -239,14 +239,14 @@ class OnlineProcessor(EngineProcessor):
'test': ['unique_results']
}
- if getattr(self.engine, 'lang', False):
+ if getattr(self.engine, 'supported_languages', []):
tests['lang_fr'] = {
'matrix': {'query': 'paris', 'lang': 'fr'},
- 'result_container': ['not_empty', ('has_lang', 'fr')],
+ 'result_container': ['not_empty', ('has_language', 'fr')],
}
tests['lang_en'] = {
'matrix': {'query': 'paris', 'lang': 'en'},
- 'result_container': ['not_empty', ('has_lang', 'en')],
+ 'result_container': ['not_empty', ('has_language', 'en')],
}
if getattr(self.engine, 'safesearch', False):