diff options
Diffstat (limited to 'searx/engines/gigablast.py')
-rw-r--r-- | searx/engines/gigablast.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/searx/engines/gigablast.py b/searx/engines/gigablast.py index 9b9b9bd77..a6aa5d718 100644 --- a/searx/engines/gigablast.py +++ b/searx/engines/gigablast.py @@ -50,9 +50,12 @@ supported_languages_url = 'https://gigablast.com/search?&rxikd=1' def request(query, params): offset = (params['pageno'] - 1) * number_of_results - language = params['language'].replace('-', '_').lower() - if language.split('-')[0] != 'zh': - language = language.split('-')[0] + if params['language'] == 'all': + language = 'xx' + else: + language = params['language'].replace('-', '_').lower() + if language.split('-')[0] != 'zh': + language = language.split('-')[0] if params['safesearch'] >= 1: safesearch = 1 |