From 2395bb7a6a06d421fea9006aeaf5e3066a6beb9f Mon Sep 17 00:00:00 2001 From: Ben Busby Date: Wed, 6 Mar 2024 09:35:48 -0700 Subject: [PATCH] Remove version from DDG bangs url Including the version portion of the URL now redirects to search results for the name of the bang file, rather than returning the bang file itself. Removing the version from the URL returns the correct bang file. --- app/utils/bangs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/utils/bangs.py b/app/utils/bangs.py index 603e54b..ac18f6a 100644 --- a/app/utils/bangs.py +++ b/app/utils/bangs.py @@ -2,7 +2,7 @@ import json import requests import urllib.parse as urlparse -DDG_BANGS = 'https://duckduckgo.com/bang.v255.js' +DDG_BANGS = 'https://duckduckgo.com/bang.js' def gen_bangs_json(bangs_file: str) -> None: