railive/RAI4.sh

21 lines
498 B
Bash
Raw Normal View History

2016-10-13 11:41:16 +02:00
#!/bin/bash
2021-10-05 14:25:15 +02:00
# RAI4.sh V1.2 20210905 Public relase
2016-10-13 11:41:16 +02:00
wget -d "http://mediapolis.rai.it/relinker/relinkerServlet.htm?cont=746966&output=45" -U "iphone" -O p.txt
2016-11-28 10:52:50 +01:00
grep content p.txt >temp.txt
2016-10-13 11:41:16 +02:00
sed -e 's/<url type="content">//g' temp.txt >temp2.txt
cat temp2.txt
sed -e 's/<\/url>//g' temp2.txt >temp.txt
dos2unix temp.txt
surce=`cat temp.txt`
echo $surce
2021-10-05 14:25:15 +02:00
#max bitrate video
#mpv --hls-bitrate=max "$surce"
#Video --vid=2 'bitrate 2137033' (h264)
mpv --vid=2 "$surce"
2016-10-13 11:41:16 +02:00
rm p.txt
rm temp.txt
2021-10-05 14:25:15 +02:00
rm temp2.txt