diff options
| author | Noémi Ványi <kvch@users.noreply.github.com> | 2019-01-07 21:35:40 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-01-07 21:35:40 +0100 |
| commit | 2438b3c77a3ad276aaeb15e5a54315d351a42273 (patch) | |
| tree | 00d4783b39625ca01c61aa4f04cb88250b21dffc /searx/engines/yacy.py | |
| parent | 491792c1a58f71083f6af663bb6d93e40fa44c9f (diff) | |
| parent | 97351a2c725ce620d452c62da07379130bafdb95 (diff) | |
Merge pull request #1475 from kvch/add-all-language-option-again
Revert "remove 'all' option from search languages"
Diffstat (limited to 'searx/engines/yacy.py')
| -rw-r--r-- | searx/engines/yacy.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/searx/engines/yacy.py b/searx/engines/yacy.py index 7c307ce53..25bc83687 100644 --- a/searx/engines/yacy.py +++ b/searx/engines/yacy.py @@ -51,7 +51,9 @@ def request(query, params): limit=number_of_results, search_type=search_type) - params['url'] += '&lr=lang_' + params['language'].split('-')[0] + # add language tag if specified + if params['language'] != 'all': + params['url'] += '&lr=lang_' + params['language'].split('-')[0] return params |