mirror of
https://github.com/aljazceru/plugins.git
synced 2025-12-24 00:24:19 +01:00
Update summary/summary.py
Co-Authored-By: Johnstedt <John-John@Markstedts.org>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user