SearXNG is a free internet metasearch engine which aggregates results from various search services and databases. Users are neither tracked nor profiled.
Python bingbravedegoogleduckduckgogooglemetasearchprivacypythonqwantsearchsearch-enginesearxsearxngstartpageyahoo
[fix] is_valid_lang fixed for new languages.py + dictzone engine encoding
potato9b82cb1908e2
diff --git a/searx/engines/dictzone.py b/searx/engines/dictzone.pyindex 7c3478629..7cc44df73 100644--- a/searx/engines/dictzone.py+++ b/searx/engines/dictzone.py@@ -37,7 +37,7 @@ def request(query, params):params['url'] = url.format(from_lang=from_lang[2],to_lang=to_lang[2],- query=query)+ query=query.decode('utf-8'))return paramsdiff --git a/searx/utils.py b/searx/utils.pyindex 498f8d0bf..3df571160 100644--- a/searx/utils.py+++ b/searx/utils.py@@ -295,12 +295,12 @@ def is_valid_lang(lang):if is_abbr:for l in language_codes:if l[0][:2] == lang.lower():- return (True, l[0][:2], l[1].lower())+ return (True, l[0][:2], l[3].lower())return Falseelse:for l in language_codes:if l[1].lower() == lang.lower():- return (True, l[0][:2], l[1].lower())+ return (True, l[0][:2], l[3].lower())return False