Open probonopd opened 8 years ago
Currently, we are scraping radiotime using grep and head. It would be cleaner to use jshn like so (note that it is not quite working yet):
grep
head
jshn
JSN=$(wget "http://opml.radiotime.com/Tune.ashx?id=s78244&render=json" -O -) . /usr/share/libubox/jshn.sh json_load "$JSN" json_select body json_get_var var1 url echo $var1
https://dev.openwrt.org/browser/trunk/package/jshn/example.txt?rev=25652
Currently, we are scraping radiotime using
grep
andhead
. It would be cleaner to usejshn
like so (note that it is not quite working yet):https://dev.openwrt.org/browser/trunk/package/jshn/example.txt?rev=25652