mirror of
https://github.com/searxng/searxng.git
synced 2026-07-17 21:41:24 +00:00
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>
This commit is contained in:
@@ -97,14 +97,10 @@ def request(query: str, params: "OnlineParams") -> None:
|
|||||||
google_info = get_google_info(params, traits)
|
google_info = get_google_info(params, traits)
|
||||||
info: dict[str, str] = google_info["params"]
|
info: dict[str, str] = google_info["params"]
|
||||||
|
|
||||||
hl = info["hl"]
|
|
||||||
if params.get("searxng_locale", "all") == "all" or "ZZ" in hl:
|
|
||||||
hl = "en"
|
|
||||||
|
|
||||||
args = {
|
args = {
|
||||||
"rsz": "filtered_cse",
|
"rsz": "filtered_cse",
|
||||||
"num": str(page_size),
|
"num": str(page_size),
|
||||||
"hl": hl,
|
"hl": info["hl"],
|
||||||
"cselibv": token["cselibv"],
|
"cselibv": token["cselibv"],
|
||||||
"cx": CX,
|
"cx": CX,
|
||||||
"q": query,
|
"q": query,
|
||||||
|
|||||||
Reference in New Issue
Block a user