summaryrefslogtreecommitdiff
path: root/searx/engines/google_news.py
diff options
context:
space:
mode:
authorMarc Abonce Seguin <marc-abonce@mailbox.org>2018-11-25 23:32:48 -0600
committerMarc Abonce Seguin <marc-abonce@mailbox.org>2019-01-06 20:31:57 -0600
commit5568f24d6ca9ae9a7eca27c107982b2689e40105 (patch)
treec67749e9dfeb4a27cef9a550fe366b291ead3373 /searx/engines/google_news.py
parent3c95d64ff8f5f42a69b05d721265c6e484edc451 (diff)
downloadsearxng-5568f24d6ca9ae9a7eca27c107982b2689e40105.tar.gz
searxng-5568f24d6ca9ae9a7eca27c107982b2689e40105.zip
[fix] check language aliases when setting search language
Diffstat (limited to 'searx/engines/google_news.py')
-rw-r--r--searx/engines/google_news.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/engines/google_news.py b/searx/engines/google_news.py
index aadcb76df..bf5995c88 100644
--- a/searx/engines/google_news.py
+++ b/searx/engines/google_news.py
@@ -51,7 +51,7 @@ def request(query, params):
params['url'] = search_url.format(query=urlencode({'q': query}),
search_options=urlencode(search_options))
- language = match_language(params['language'], supported_languages).split('-')[0]
+ language = match_language(params['language'], supported_languages, language_aliases).split('-')[0]
if language:
params['url'] += '&lr=lang_' + language