From b63d645a52d663036b97e31a59818d79faa4da81 Mon Sep 17 00:00:00 2001 From: Noémi Ványi Date: Sun, 6 Jan 2019 15:27:46 +0100 Subject: Revert "remove 'all' option from search languages" This reverts commit 4d1770398a6af8902e75c0bd885781584d39e796. --- searx/engines/google_news.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'searx/engines/google_news.py') diff --git a/searx/engines/google_news.py b/searx/engines/google_news.py index bf5995c88..9c837b45b 100644 --- a/searx/engines/google_news.py +++ b/searx/engines/google_news.py @@ -51,9 +51,10 @@ def request(query, params): params['url'] = search_url.format(query=urlencode({'q': query}), search_options=urlencode(search_options)) - language = match_language(params['language'], supported_languages, language_aliases).split('-')[0] - if language: - params['url'] += '&lr=lang_' + language + if params['language'] != 'all': + language = match_language(params['language'], supported_languages, language_aliases).split('-')[0] + if language: + params['url'] += '&lr=lang_' + language return params -- cgit v1.2.3-54-g00ecf