Add files via upload

fix script
This commit is contained in:
fenix-soft 2021-10-05 14:59:28 +02:00 committed by GitHub
parent 87f9641cdb
commit 74e2e54dd9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 12 additions and 3 deletions

View File

@ -1,15 +1,24 @@
#!/bin/bash #!/bin/bash
# rai news 24 # rai news 24
#
## V1.2 20210905 Public relase
wget -d "http://mediapolis.rai.it/relinker/relinkerServlet.htm?cont=1&output=45" -U "iphone" -O p.txt wget -d "http://mediapolis.rai.it/relinker/relinkerServlet.htm?cont=1&output=45" -U "iphone" -O p.txt
grep http p.txt >temp.txt grep content p.txt >temp.txt
sed -e 's/<url type="content">//g' temp.txt >temp2.txt sed -e 's/<url type="content">//g' temp.txt >temp2.txt
cat temp2.txt cat temp2.txt
sed -e 's/<\/url>//g' temp2.txt >temp.txt sed -e 's/<\/url>//g' temp2.txt >temp.txt
dos2unix temp.txt dos2unix temp.txt
surce=`cat temp.txt` surce=`cat temp.txt`
echo $surce echo $surce
mpv --hls-bitrate=max "$surce"
#max bitrate video
#mpv --hls-bitrate=max "$surce"
#Video --vid=1
mpv --vid=2 "$surce"
rm p.txt rm p.txt
rm temp.txt rm temp.txt
rm temp2.txt rm temp2.txt