summaryrefslogtreecommitdiff
path: root/searx/engines/wikidata.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/wikidata.py
parent3c95d64ff8f5f42a69b05d721265c6e484edc451 (diff)
downloadsearxng-5568f24d6ca9ae9a7eca27c107982b2689e40105.tar.gz
searxng-5568f24d6ca9ae9a7eca27c107982b2689e40105.zip
[fix] check language aliases when setting search language
Diffstat (limited to 'searx/engines/wikidata.py')
-rw-r--r--searx/engines/wikidata.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/engines/wikidata.py b/searx/engines/wikidata.py
index c315b30da..2485b6528 100644
--- a/searx/engines/wikidata.py
+++ b/searx/engines/wikidata.py
@@ -68,7 +68,7 @@ def response(resp):
html = fromstring(resp.text)
search_results = html.xpath(wikidata_ids_xpath)
- language = match_language(resp.search_params['language'], supported_languages).split('-')[0]
+ language = match_language(resp.search_params['language'], supported_languages, language_aliases).split('-')[0]
# TODO: make requests asynchronous to avoid timeout when result_count > 1
for search_result in search_results[:result_count]: