diff options
| author | Noémi Ványi <kvch@users.noreply.github.com> | 2019-01-07 20:38:05 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-01-07 20:38:05 +0100 |
| commit | 491792c1a58f71083f6af663bb6d93e40fa44c9f (patch) | |
| tree | 18d6b7072a2ac8de4e357f9a013c9310589dd2c9 /searx/engines/wikidata.py | |
| parent | 35d82ed6609c8cf5d905493e1593f2cfe57ae88d (diff) | |
| parent | 1a850cf171a2820b3bf52459c4c761e372f90996 (diff) | |
Merge pull request #1446 from MarcAbonce/language_aliases_fix
[fix] Fix queries in Hebrew and Norwegian so they give results in the right language
Diffstat (limited to 'searx/engines/wikidata.py')
| -rw-r--r-- | searx/engines/wikidata.py | 2 |
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]: |