diff options
| author | Noémi Ványi <kvch@users.noreply.github.com> | 2019-01-15 22:11:26 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-01-15 22:11:26 +0100 |
| commit | 25367cfba13de9bec580d7d495c4e70b8ea8f76d (patch) | |
| tree | bc4f87b06f658d13d8e4f6a553b5ab90ffe00ed8 /searx/engines/yacy.py | |
| parent | 4977ea5405954107d071235093f01d0246c31fb2 (diff) | |
| parent | 383e3cc554a3704cd8b076aa686f32b8ce78f681 (diff) | |
Merge branch 'master' into setup-no-tests
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 |