diff options
Diffstat (limited to 'searx/engines/yandex.py')
-rw-r--r-- | searx/engines/yandex.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/engines/yandex.py b/searx/engines/yandex.py index b83a747f9..eee345c45 100644 --- a/searx/engines/yandex.py +++ b/searx/engines/yandex.py @@ -36,7 +36,7 @@ content_xpath = './/div[@class="text-container typo typo_text_m typo_line_m orga def request(query, params): - lang = params['language'].split('_')[0] + lang = params['language'].split('-')[0] host = base_url.format(tld=language_map.get(lang) or default_tld) params['url'] = host + search_url.format(page=params['pageno'] - 1, query=urlencode({'text': query})) |