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:
Valentin Lorentz 2020-07-01 10:33:26 +02:00
parent a3e6887fc9
commit 9be5676dfd

View File

@ -57,7 +57,7 @@ class DDG(callbacks.Plugin):
def _ddgurl(text):
# DuckDuckGo has a 'lite' site free of unparseable JavaScript
# 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)