diff options
author | marc <a01200356@itesm.mx> | 2017-07-20 15:47:20 -0500 |
---|---|---|
committer | Marc Abonce Seguin <marc-abonce@mailbox.org> | 2017-12-06 01:20:15 -0600 |
commit | 4d1770398a6af8902e75c0bd885781584d39e796 (patch) | |
tree | 1ad30e59206eca081c93a2ad37928ce059f7d114 /searx/engines/yahoo.py | |
parent | 46fb0d860e35a45658969c4e2ac306a1072bc331 (diff) | |
download | searxng-4d1770398a6af8902e75c0bd885781584d39e796.tar.gz searxng-4d1770398a6af8902e75c0bd885781584d39e796.zip |
remove 'all' option from search languages
Diffstat (limited to 'searx/engines/yahoo.py')
-rw-r--r-- | searx/engines/yahoo.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/searx/engines/yahoo.py b/searx/engines/yahoo.py index 5387aaf54..626a398b5 100644 --- a/searx/engines/yahoo.py +++ b/searx/engines/yahoo.py @@ -71,9 +71,7 @@ def _get_url(query, offset, language, time_range): def _get_language(params): - if params['language'] == 'all': - return 'en' - elif params['language'][:2] == 'zh': + if params['language'][:2] == 'zh': if params['language'] == 'zh' or params['language'] == 'zh-CH': return 'szh' else: |