summaryrefslogtreecommitdiff
path: root/searx/engines/bing_news.py
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarit.de>2020-02-25 18:44:28 +0100
committerMarkus Heiser <markus.heiser@darmarit.de>2020-02-25 18:44:28 +0100
commitc89c05bcebb44699c94d6da2fcb8ad376b60fe67 (patch)
tree54920aff5d191b1dd1e3aa423822b746a2cb372c /searx/engines/bing_news.py
parent6a3ef5561ba48e287f0b9c03a0b6d2f13b703077 (diff)
downloadsearxng-c89c05bcebb44699c94d6da2fcb8ad376b60fe67.tar.gz
searxng-c89c05bcebb44699c94d6da2fcb8ad376b60fe67.zip
bugfix: google-news and bing-news has changed the language parameter
closes: https://github.com/asciimoo/searx/issues/1838 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'searx/engines/bing_news.py')
-rw-r--r--searx/engines/bing_news.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/searx/engines/bing_news.py b/searx/engines/bing_news.py
index 669130c42..827555bd7 100644
--- a/searx/engines/bing_news.py
+++ b/searx/engines/bing_news.py
@@ -58,8 +58,9 @@ def _get_url(query, language, offset, time_range):
offset=offset,
interval=time_range_dict[time_range])
else:
+ # e.g. setmkt=de-de&setlang=de
search_path = search_string.format(
- query=urlencode({'q': query, 'setmkt': language}),
+ query=urlencode({'q': query, 'setlang': language}),
offset=offset)
return base_url + search_path