Skip to content

SearXNG is a free internet metasearch engine which aggregates results from various search services and databases. Users are neither tracked nor profiled.

[fix] google CSE - leftover from PR #6364 (#6369)

Markus Heiser556d08c39516
diff --git a/searx/engines/google_cse.py b/searx/engines/google_cse.py
index 4c333dfdd..4d39c8cc9 100644
--- a/searx/engines/google_cse.py
+++ b/searx/engines/google_cse.py
@@ -97,14 +97,10 @@ def request(query: str, params: "OnlineParams") -> None:
google_info = get_google_info(params, traits)
info: dict[str, str] = google_info["params"]
- hl = info["hl"]
- if params.get("searxng_locale", "all") == "all" or "ZZ" in hl:
- hl = "en"
-
args = {
"rsz": "filtered_cse",
"num": str(page_size),
- "hl": hl,
+ "hl": info["hl"],
"cselibv": token["cselibv"],
"cx": CX,
"q": query,