mirror of
https://github.com/searxng/searxng.git
synced 2025-12-23 20:20:05 +00:00
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.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user