From 6b1f7901bc534f60db042304e895b0342d0f61bc Mon Sep 17 00:00:00 2001 From: John-John Markstedt Date: Mon, 8 Apr 2019 16:14:57 +0200 Subject: [PATCH] raw response fix --- summary/summary.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/summary/summary.py b/summary/summary.py index 775cbd3..1453671 100755 --- a/summary/summary.py +++ b/summary/summary.py @@ -36,7 +36,7 @@ class PriceThread(threading.Thread): try: r = requests.get('https://apiv2.bitcoinaverage.com/convert/global' '?from=BTC&to={}&amount=1'.format(plugin.currency)) - plugin.fiat_per_btc = json.loads(r.content)['price'] + plugin.fiat_per_btc = json.loads(r.content.decode())['price'] except Exception: pass # Six hours is more than often enough for polling