-
-
Save dictcp/679b1ce391cae9a6227fc5928bfaa37d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http -v -j POST https://hkt-mobile-api.nowtv.now.com/09/1/getLiveURL mode=prod format=HLS callerReferenceNo=20190707123320 channelno=332 deviceType=5 deviceId=7634de3e186676d537OA | |
http -v -j POST https://api.viu.now.com/p8/2/getLiveURL mode=prod format=HLS callerReferenceNo=20190707123320 channelno=100 deviceType=5 deviceId=7634de3e186676d537 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//curl 'https://hkt-mobile-api.nowtv.now.com/09/1/getLiveURL' -H 'Accept: */*' -H 'Referer: https://news.now.com/home/live331a' -H 'Origin: https://news.now.com' -H 'User-Agent: Mozilla/5.0 (X11; CrOS x86_64 12105.75.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.102 Safari/537.36' -H 'Content-Type: application/json' --data-binary '{"channelno":"331","mode":"prod","audioCode":"","format":"HLS","callerReferenceNo":"20140702122500"}' --compressed | |
{"asset":{"hls":{"fix":{"2":["http://ewcdnsite06.nowe.com/session/09-66f7223b8ba659a79719d70a1aeee/Content/HLS/LIVE/Channel(HLS_CH331)/Stream(02)/index.m3u8?token=0425484f980b53d36d0293acc69c55b2_1562399934"],"1":["http://ewcdnsite06.nowe.com/session/09-66f7223b8ba659a79719d70a1aeee/Content/HLS/LIVE/Channel(HLS_CH331)/Stream(01)/index.m3u8?token=d3db0393451ab9b83b4d738376c7e979_1562399934"]},"adaptive":["http://ewcdnsite06.nowe.com/session/09-66f7223b8ba659a79719d70a1aeee/Content/HLS/LIVE/Channel(HLS_CH331)/index.m3u8?token=37c2269e3eff183d98c4c3084ac72060_1562399934"]}},"serviceName":"FTA","responseCode":"SUCCESS","callerReferenceNo":"20140702122500","serverReferenceNo":"[yvpvmappapi01]1562385534028","elapsedTime":75} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// https://github.com/hklcf/hklcf.github.io/blob/master/viutv/getvodurl.html | |
$("#productId").change(function(){ | |
$.post("//api.viu.now.com/p8/1/getVodURL", '{"productId":'+$("#productId").val()+',"deviceId":"0000anonymous_user","format":"HLS"}', function(data){ | |
$("#result").empty().append(data.asset.hls.adaptive[0]); | |
}, "json"); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#https://blog.wtako.net/view/23 | |
function viutv() { index=$(curl -s '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])') && curl -s $index > /dev/null && base=$(echo $index | sed "s/\/index.*//g") && mpv "$base/Stream(04)/index.m3u8" --audio-file "$base/Stream(06)/index.m3u8" } | |
viutv |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment