From 8529abd8334bc3099097aa707bde4091a277ba78 Mon Sep 17 00:00:00 2001 From: Ken Sedgwick Date: Mon, 4 Jul 2022 09:54:31 -0700 Subject: [PATCH] summary: use lowercase in bitstamp url --- summary/summary.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/summary/summary.py b/summary/summary.py index 4f6bdf7..a41efe1 100755 --- a/summary/summary.py +++ b/summary/summary.py @@ -69,7 +69,7 @@ class PriceThread(threading.Thread): # NOTE: Bitstamp has a DNS/Proxy issues that can return 404 # Workaround: retry up to 5 times with a delay for _ in range(5): - r = requests.get('https://www.bitstamp.net/api/v2/ticker/BTC{}'.format(plugin.currency), proxies=self.proxies) + r = requests.get('https://www.bitstamp.net/api/v2/ticker/btc{}'.format(plugin.currency.lower()), proxies=self.proxies) if not r.status_code == 200: time.sleep(1) continue