diff options
Diffstat (limited to 'searx/engines/faroo.py')
-rw-r--r-- | searx/engines/faroo.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/searx/engines/faroo.py b/searx/engines/faroo.py index 7ce3a6ce8..4e8b56743 100644 --- a/searx/engines/faroo.py +++ b/searx/engines/faroo.py @@ -40,10 +40,7 @@ def request(query, params): offset = (params['pageno'] - 1) * number_of_results + 1 categorie = search_category.get(params['category'], 'web') - if params['language'] == 'all': - language = 'en' - else: - language = params['language'].split('_')[0] + language = params['language'].split('-')[0] # if language is not supported, put it in english if language != 'en' and\ |