Skip to content

Instantly share code, notes, and snippets.

@denysvitali
Created November 26, 2018 20:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save denysvitali/6b387f71520f9abbc43c07987b97a62c to your computer and use it in GitHub Desktop.
Save denysvitali/6b387f71520f9abbc43c07987b97a62c to your computer and use it in GitHub Desktop.
PLAY_URL=$(DATE_NOW=$(echo $(date +%s) - 10 | bc); HDNTS=$(curl https://tp.srgssr.ch/akahd/token\?acl\=/i/enc12uni_ch@191527/\* | jq .token.authparams -r | sed 's/^hdnts=//'); curl -H 'Referer: https://tp.srgssr.ch/p/rsi/portal-detail\?urn\=urn:rsi:video:livestream_La1\&autoplay\=true' -H 'Origin: https://tp.srgssr.ch' -H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:65.0) Gecko/20100101 Firefox/65.0' https://srgssruni12ch-lh.akamaihd.net/i/enc12uni_ch@191527/master.m3u8\?hdnts\=$HDNTS | grep 640x360 -A 1 | head -n 2 | tail -n 1); ffplay $PLAY_URL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment