Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- URL1=`wget http://www.tvnoe.cz/zive-pres-internet.html -O - -q | grep "<iframe src=\"/res/data" | cut -d '"' -f2`
- UUID=`wget http://www.tvnoe.cz${URL1} -O - -q | grep "prepareSmart" | cut -d '"' -f 4`
- URL2=`wget -U "Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20100101 Firefox/17.0" -q -O - --cookies=on --keep-session-cookies --save-cookies=/tmp/cookie.txt "http://vueasy.com/Smart/GetSmartPageJsonp?assetId=${UUID}&callback=aaa" | sed -e 's/[{}]/''/g' | awk -v k="text" '{n=split($0,a,","); for (i=1; i<=n; i++) print a[i]}' | sed 's/\\\\//g' | grep '"PlaylistLink"' | cut -d'"' -f 4`
- URL3=`wget -U "Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20100101 Firefox/17.0" -q -O - --cookies=on --keep-session-cookies --save-cookies=/tmp/cookie.txt "${URL2}" | grep "rtmp:" | cut -d'>' -f2 | cut -d'<' -f 1`
- URL4=`wget -U "Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20100101 Firefox/17.0" -q -O - --cookies=on --keep-session-cookies --save-cookies=/tmp/cookie.txt "${URL2}" | grep url | head -n1 | cut -d'"' -f8`
- vlc "${URL3}/${URL4}"
Add Comment
Please, Sign In to add comment