mirror of
https://github.com/searxng/searxng.git
synced 2026-06-04 00:47:17 +02:00
[fix] bing engines - geoblocking in China (#6134)
In regions like China, the domain must be adjusted to avoid a redirect. - https://github.com/searxng/searxng/issues/5243 - https://github.com/searxng/searxng/pull/5324 - https://github.com/searxng/searxng/pull/6133 Suggested / tested by @hubutui in https://github.com/searxng/searxng/pull/6133#issuecomment-4534637069 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
This commit is contained in:
@@ -29,7 +29,7 @@ paging = True
|
||||
safesearch = True
|
||||
time_range_support = True
|
||||
|
||||
base_url = "https://www.bing.com/videos/asyncv2"
|
||||
base_url = "https://www.bing.com"
|
||||
"""Bing-Video search URL"""
|
||||
|
||||
|
||||
@@ -60,7 +60,7 @@ def request(query, params):
|
||||
query_params["form"] = "VRFLTR"
|
||||
query_params["qft"] = " filterui:videoage-lt%s" % time_map[params["time_range"]]
|
||||
|
||||
params["url"] = base_url + "?" + urlencode(query_params)
|
||||
params["url"] = base_url + "/videos/asyncv2?" + urlencode(query_params)
|
||||
|
||||
return params
|
||||
|
||||
|
||||
Reference in New Issue
Block a user