From 87f9641cdba1cdb84544ac89a54b61ba76cc73e7 Mon Sep 17 00:00:00 2001 From: fenix-soft Date: Tue, 5 Oct 2021 14:39:22 +0200 Subject: [PATCH] Add files via upload fix relinker and link extrapolator, default debug mode --- RAI5.sh | 56 +++++++++++++++++++++++++++++++++++++++----------------- 1 file changed, 39 insertions(+), 17 deletions(-) diff --git a/RAI5.sh b/RAI5.sh index ee87630..66d0631 100644 --- a/RAI5.sh +++ b/RAI5.sh @@ -1,20 +1,42 @@ #!/bin/bash -# rai 5 +# +# RAI5.sh V1.3 (debug mode) 20210905 Public relase +# +# note: the debug mode in this script is necessary because the rai relinker of this channel changes often. The video presets change constantly and are not consistent with the bitrate streams of the other channels. The extrapolation format changes often, you may have it in xml format (sometimes even poorly formatted) or in json. The debug mode is necessary to quickly understand where the problem lies in the event of a malfunction! -#----- old script -#wget -d "http://mediapolis.rai.it/relinker/relinkerServlet.htm?cont=395276&output=45" -U "iphone" -O p.txt -#grep http p.txt >temp.txt -#sed -e 's///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 -#----- old script -# temp fix for work! -mpv "http://b2everyrai-lh.akamaihd.net/i/rai5_1@182695/index_1200_av-b.m3u8" \ No newline at end of file + +wget -d "http://mediapolis.rai.it/relinker/relinkerServlet.htm?cont=395276&output=45" -U "iphone" -O p.txt +echo " " +echo "DEBUG MODE...start! extract media url.. " +grep http p.txt >temp.txt +sed -e 's///g' temp.txt >temp2.txt +echo " " +cat temp2.txt +echo " " +sed -e 's/<\/url>//g' temp2.txt >temp3.txt +echo " " +cat temp3.txt +echo " " +echo " " +grep hls temp3.txt >temp.txt + +echo " " +dos2unix temp.txt +surce=`cat temp.txt` +echo " " +echo "Find_Media_Url: "$surce +echo " " +echo "DEBUG MODE END.. start play stream.. " +echo " " + +#max bitrate video +#mpv --hls-bitrate=max "$surce" + +#Video --vid=2 'bitrate 2137033' (h264) +mpv --vid=2 "$surce" + +rm p.txt +rm temp.txt +rm temp2.txt +rm temp3.txt