forked from Ponysearch/Ponysearch
[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
3 changed files with 1 additions and 1 deletions
|
@ -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 a new issue