Last active
March 28, 2016 06:57
-
-
Save dardo82/29935c66f68c2cedffef to your computer and use it in GitHub Desktop.
Rec TVL stream
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/zsh | |
MM3U8="live-04.viewer.dacast.com/i/dclive_1@104057/master.m3u8" | |
TJSON="http://services.dacast.com/token/i/b/28193/c/34004.json" | |
TOKEN="$(print $(curl -s "$TJSON" | awk -F'["]' '{print $6}'))" | |
IM3U8="$(curl -s "$MM3U8""$TOKEN" | awk '/m3u8/')" | |
TSSEG="$(curl -s "$IM3U8" | awk '/ts/{match($0,/([0-9]+)_/,a);\ | |
sub(/([0-9]+)_/,"["a[1]"-"a[1]+9"]_");print $0;exit}')" | |
curl --limit-rate 100k "$TSSEG" >> tvl.ts |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Scarica da TVL un minuto di trasmissione in formato TS.
http://www.tvl.it/