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] convert bytes type to string in language detection (fixes dictzone)
Adam Tauber72459b246be8
diff --git a/searx/utils.py b/searx/utils.pyindex d88bc9897..eb5da2fa7 100644--- a/searx/utils.py+++ b/searx/utils.py@@ -308,14 +308,15 @@ def int_or_zero(num):def is_valid_lang(lang):is_abbr = (len(lang) == 2)+ lang = lang.lower().decode('utf-8')if is_abbr:for l in language_codes:- if l[0][:2] == lang.lower():+ if l[0][:2] == lang:return (True, l[0][:2], l[3].lower())return Falseelse:for l in language_codes:- if l[1].lower() == lang.lower():+ if l[1].lower() == lang or l[3].lower() == lang:return (True, l[0][:2], l[3].lower())return False