summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarit.de>2026-07-06 06:05:53 +0200
committerBnyro <bnyro@tutanota.com>2026-07-06 09:23:28 +0200
commit556d08c3951679425814041fd018bc4543843647 (patch)
tree57f78f4f4e683d48b07a4f47b22eb754e70bd914
parent1017631800c3851112cdbb1880b7c5bdf78a7f7b (diff)
[fix] google CSE - leftover from PR #6364 (#6369)
The `ZZ` issue has been fixed in the google.py and the default lang_code is already `en`: - https://github.com/searxng/searxng/pull/6364#discussion_r3524461287 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
-rw-r--r--searx/engines/google_cse.py6
1 files changed, 1 insertions, 5 deletions
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,