mirror of
https://github.com/searxng/searxng
synced 2024-01-01 18:24:07 +00:00
[mod] minor fixes (duckduck_definitions : if a ddg bang is in the query, avoid a useless redirect)
This commit is contained in:
parent
75d22cd847
commit
e88cf0a0a8
@ -1,7 +1,7 @@
|
||||
import json
|
||||
from urllib import urlencode
|
||||
|
||||
url = 'http://api.duckduckgo.com/?{query}&format=json&pretty=0'
|
||||
url = 'http://api.duckduckgo.com/?{query}&format=json&pretty=0&no_redirect=1'
|
||||
|
||||
def request(query, params):
|
||||
params['url'] = url.format(query=urlencode({'q': query}))
|
||||
|
0
searx/engines/flickr.py
Executable file → Normal file
0
searx/engines/flickr.py
Executable file → Normal file
0
searx/engines/google_images.py
Executable file → Normal file
0
searx/engines/google_images.py
Executable file → Normal file
Loading…
Reference in New Issue
Block a user