Data hosted with ♥ by
Pastebin.com
-
Download Raw
-
See Original
#!/bin/bash
function
viutv
{
index
=$
(
curl
-s
--url
'http://api.viu.now.com/p8/1/getLiveURL'
--data
'{"channelno":"099","mode":"prod","deviceId":"0000anonymous_user","format":"HLS"}'
|
python
-c
'import json,sys; print(json.load(sys.stdin)["asset"]["hls"]["adaptive"][0])'
)
mpv
$index
}
viutv