From 1175b3906f801c2ad3b6aa1f0718aedd7811dd5f Mon Sep 17 00:00:00 2001 From: marc Date: Wed, 28 Dec 2016 23:24:56 -0600 Subject: change language list to only include languages with a minimum of engines that support them. users can still query lesser supported through the :lang_code bang. --- searx/engines/wikipedia.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'searx/engines/wikipedia.py') diff --git a/searx/engines/wikipedia.py b/searx/engines/wikipedia.py index 78acd349d..3af8f1c71 100644 --- a/searx/engines/wikipedia.py +++ b/searx/engines/wikipedia.py @@ -132,7 +132,7 @@ def _fetch_supported_languages(resp): english_name = td[1].xpath('./a')[0].text articles = int(td[4].xpath('./a/b')[0].text.replace(',', '')) # exclude languages with too few articles - if articles >= 100000: + if articles >= 100: supported_languages[code] = {"name": name, "english_name": english_name, "articles": articles} return supported_languages -- cgit v1.2.3-54-g00ecf