File: packetizer.patch

package info (click to toggle)
units 2.25-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 3,856 kB
  • sloc: ansic: 6,836; sh: 899; python: 803; yacc: 605; makefile: 490; perl: 435
file content (17 lines) | stat: -rw-r--r-- 597 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Description: Adjust to new packetizer URLs
Author: Stephen Kitt <skitt@debian.org>
Bug-Debian: https://bugs.debian.org/1128412

--- a/units_cur
+++ b/units_cur
@@ -556,8 +556,8 @@
 # Get precious metals data and bitcoin
 #
 
-metals = getjson('https://services.packetizer.com/spotprices',{'f':'json'})
-bitcoin = getjson('https://services.packetizer.com/btc',{'f':'json'})
+metals = getjson('https://services.packetizer.com/spotprices/',{'f':'json'})
+bitcoin = getjson('https://services.packetizer.com/btc/',{'f':'json'})
 
 metallist = ['']*len(validmetals)
 for metal, price in metals.items():