Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. #!/bin/bash
  2.  
  3. function viutv {
  4.     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])')
  5.     mpv $index
  6. }
  7.  
  8. viutv