aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLia Lenckowski <lialenck@protonmail.com>2023-08-01 01:29:48 +0200
committerLia Lenckowski <lialenck@protonmail.com>2023-08-01 01:29:48 +0200
commit7c933642730dd5b935281f2cc938f2998e3a4114 (patch)
tree490558edab65a7d70f50e2141356716f99be2d11 /src
parent180ca78de50195a176b8125bd364838e905cc241 (diff)
downloadfastbangs-7c933642730dd5b935281f2cc938f2998e3a4114.tar
fastbangs-7c933642730dd5b935281f2cc938f2998e3a4114.tar.bz2
fastbangs-7c933642730dd5b935281f2cc938f2998e3a4114.tar.zst
more up-to-date-bangs (still not the most recent, but the most recent i could find without crawling duckduckgo a bunch)
Diffstat (limited to 'src')
-rw-r--r--src/BangState.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/BangState.hs b/src/BangState.hs
index fabd9e7..328a57e 100644
--- a/src/BangState.hs
+++ b/src/BangState.hs
@@ -70,7 +70,7 @@ loadOwnBangs = eitherDecodeFileStrict "bangs.json" <|> return (Left "") >>= \cas
initBangState :: IO BangState
initBangState = do
-- TODO error handling for ddg bang polling, as well as regular polling
- ans <- (httpJSON "https://duckduckgo.com/bang.v255.js") :: IO (Response DDGBangs)
+ ans <- (httpJSON "https://duckduckgo.com/bang.v260.js") :: IO (Response DDGBangs)
s <- BangState
<$> (loadOwnBangs >>= newTVarIO)
<*> newTVarIO (toBangs $ getResponseBody ans)