mirror of
https://github.com/searxng/searxng.git
synced 2025-07-24 13:49:26 +02:00
[enh] add supported_languages on engines and auto-generate languages.py
This commit is contained in:
parent
e58949b76f
commit
149802c569
34 changed files with 666 additions and 128 deletions
|
@ -32,7 +32,7 @@ def request(query, params):
|
|||
offset = (params['pageno'] - 1) * 10 + 1
|
||||
|
||||
if params['language'] != 'all':
|
||||
query = u'language:{} {}'.format(params['language'].split('_')[0].upper(),
|
||||
query = u'language:{} {}'.format(params['language'].split('-')[0].upper(),
|
||||
query.decode('utf-8')).encode('utf-8')
|
||||
|
||||
search_path = search_string.format(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue