Edit post
subject
Title
edit
1. 安裝`mpv`軟件包。 2. 加入以下文字到`~/.bashrc`、`~/.zshrc`等文件: 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" } 3. `$ viutv`
Content
vpn_key
Password
Preview
Powered by
Simple Blog