Update summary/summary.py

Co-Authored-By: Johnstedt <John-John@Markstedts.org>
This commit is contained in:
Christian Decker
2019-04-16 14:52:59 +02:00
parent 6b1f7901bc
commit e0f02db123

View File

@@ -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.decode())['price']
plugin.fiat_per_btc = json.loads(r.content.decode('UTF-8'))['price']
except Exception:
pass
# Six hours is more than often enough for polling