railive/RAIsport2.sh

16 lines
424 B
Bash

#!/bin/bash
# rai sport 2 sd è la versione sd di rai sport 1
wget -d "http://mediapolis.rai.it/relinker/relinkerServlet.htm?cont=358071&output=45" -U "iphone" -O p.txt
grep http p.txt >temp.txt
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
mpv --hls-bitrate=max "$surce"
rm p.txt
rm temp.txt
rm temp2.txt