Merge pull request #2035 from rudism/fix-ddg-url

Fix: add trailing slash to duckduckgo url
This commit is contained in:
Markus Heiser 2022-12-22 15:02:01 +01:00 committed by GitHub
commit d75ae7c8e6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -18,7 +18,7 @@ from searx.network import get
# about # about
about = { about = {
"website": 'https://lite.duckduckgo.com/lite', "website": 'https://lite.duckduckgo.com/lite/',
"wikidata_id": 'Q12805', "wikidata_id": 'Q12805',
"official_api_documentation": 'https://duckduckgo.com/api', "official_api_documentation": 'https://duckduckgo.com/api',
"use_official_api": False, "use_official_api": False,
@ -46,7 +46,7 @@ language_aliases = {
time_range_dict = {'day': 'd', 'week': 'w', 'month': 'm', 'year': 'y'} time_range_dict = {'day': 'd', 'week': 'w', 'month': 'm', 'year': 'y'}
# search-url # search-url
url = 'https://lite.duckduckgo.com/lite' url = 'https://lite.duckduckgo.com/lite/'
url_ping = 'https://duckduckgo.com/t/sl_l' url_ping = 'https://duckduckgo.com/t/sl_l'
# match query's language to a region code that duckduckgo will accept # match query's language to a region code that duckduckgo will accept