mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-30 06:49:24 +01:00
DDG: Update lite search URL.
Duckduckgo started redirecting https://duckduckgo.com/lite to https://lite.duckduckgo.com/lite so it was mistakenly interpreted as a !bang. Changing the initial URL fixes this false detection.
This commit is contained in:
parent
a3e6887fc9
commit
9be5676dfd
@ -57,7 +57,7 @@ class DDG(callbacks.Plugin):
|
|||||||
def _ddgurl(text):
|
def _ddgurl(text):
|
||||||
# DuckDuckGo has a 'lite' site free of unparseable JavaScript
|
# DuckDuckGo has a 'lite' site free of unparseable JavaScript
|
||||||
# elements, so we'll use that to our advantage!
|
# elements, so we'll use that to our advantage!
|
||||||
url = "https://duckduckgo.com/lite?" + urlencode({"q": text})
|
url = "https://lite.duckduckgo.com/lite?" + urlencode({"q": text})
|
||||||
|
|
||||||
log.debug("DDG: Using URL %s for search %s", url, text)
|
log.debug("DDG: Using URL %s for search %s", url, text)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user