diff options
Diffstat (limited to 'searx/engines/yahoo_news.py')
-rw-r--r-- | searx/engines/yahoo_news.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/searx/engines/yahoo_news.py b/searx/engines/yahoo_news.py index ae54a4acd..69e9aef4f 100644 --- a/searx/engines/yahoo_news.py +++ b/searx/engines/yahoo_news.py @@ -38,10 +38,7 @@ suggestion_xpath = '//div[contains(@class,"VerALSOTRY")]//a' def request(query, params): offset = (params['pageno'] - 1) * 10 + 1 - if params['language'] == 'all': - language = 'en' - else: - language = params['language'].split('_')[0] + language = params['language'].split('-')[0] params['url'] = search_url.format(offset=offset, query=urlencode({'p': query}), |