summaryrefslogtreecommitdiff
path: root/searx/engines
diff options
context:
space:
mode:
authorNoémi Ványi <sitbackandwait@gmail.com>2019-01-07 21:28:58 +0100
committerNoémi Ványi <sitbackandwait@gmail.com>2019-01-07 21:28:58 +0100
commit97351a2c725ce620d452c62da07379130bafdb95 (patch)
tree00d4783b39625ca01c61aa4f04cb88250b21dffc /searx/engines
parentb63d645a52d663036b97e31a59818d79faa4da81 (diff)
downloadsearxng-97351a2c725ce620d452c62da07379130bafdb95.tar.gz
searxng-97351a2c725ce620d452c62da07379130bafdb95.zip
fix after rebase
Diffstat (limited to 'searx/engines')
-rw-r--r--searx/engines/wikipedia.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/engines/wikipedia.py b/searx/engines/wikipedia.py
index 39aec1c81..4dae735d1 100644
--- a/searx/engines/wikipedia.py
+++ b/searx/engines/wikipedia.py
@@ -32,7 +32,7 @@ supported_languages_url = 'https://meta.wikimedia.org/wiki/List_of_Wikipedias'
# set language in base_url
def url_lang(lang):
lang_pre = lang.split('-')[0]
- if lang_pre == 'all' or lang_pre not in supported_languages:
+ if lang_pre == 'all' or lang_pre not in supported_languages and lang_pre not in language_aliases:
return 'en'
return match_language(lang, supported_languages, language_aliases).split('-')[0]