diff options
| author | Adam Tauber <asciimoo@gmail.com> | 2017-12-06 14:34:26 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-12-06 14:34:26 +0100 |
| commit | 49b845051f027cf9d29a20821968103a0f55c9d9 (patch) | |
| tree | 249693fb31423283ee21c5ded4bed844d7250f2e /searx/engines/yahoo.py | |
| parent | df0b8ee5270a37642ccf5f42e95b0656aefc7fda (diff) | |
| parent | 4d1770398a6af8902e75c0bd885781584d39e796 (diff) | |
Merge pull request #973 from MarcAbonce/languages
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: |