Changeset 41218 for titan/mediathek/localhoster/hoster.sh
- Timestamp:
- 11/20/17 16:38:34 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
titan/mediathek/localhoster/hoster.sh
r41214 r41218 22 22 export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/tmp/localhoster/lib 23 23 24 24 25 if [ "$debuglevel" == "99" ]; then curlbin="$curlbin -v"; fi 25 26 if [ "$debuglevel" == "99" ]; then curlbin2="$curlbin2 -v"; fi 26 #if [ "$debuglevel" == "99" ]; then youtubebin="$youtubebin --verbose"; fi27 if [ "$debuglevel" == "99" ]; then youtubebin="$youtubebin --verbose"; fi 27 28 28 29 wgetbin="wget -q -T2" … … 72 73 hoster=`echo $INPUT | tr 'A-Z' 'a-z' | sed 's!://!\n!' | cut -d'/' -f1 | tail -n1 | cut -d"." -f$hosterline` 73 74 #echo $hoster 74 75 debuglevel=`cat /mnt/config/titan.cfg | grep debuglevel | cut -d"=" -f2`76 if [ "$debuglevel" == "99" ]; then curlbin="$curlbin -v"; fi77 75 78 76 ecostream() … … 237 235 { 238 236 #http://emb.aliez.me/player/live.php?id=56180&w=700&h=480" 239 URL=`$curlbin "$INPUT" | sed 's/source:/\n source:/' | grep ^source:| cut -d"'" -f2`237 URL=`$curlbin "$INPUT" | sed 's/source:/\nfound=/' | grep ^found= | cut -d"'" -f2` 240 238 REFERER=`echo "$INPUT" | sed -e 's/=/3D/g' -e 's/&/26/g'` 241 239 echo "$URL|Referer=$REFERER&User-Agent=$USERAGENT" 242 240 } 241 242 sport7() 243 { 244 #http://sport7.tech/487b826914d11080dce4b502052b012d-live.html 245 #var videoLink = 'http://g4.securestream.sport7.tech/stream/NzYyZDUwZWNkODc5YWM5YjViY2ZkOTVhZGNjOGM1ZTc=/BTSport3.m3u8'; 246 247 URL=`$curlbin "$INPUT" | sed 's/var videoLink/\nfound=/' | grep ^found= | cut -d"'" -f2` 248 REFERER=`echo "$INPUT" | sed -e 's/=/3D/g' -e 's/&/26/g'` 249 sed 's/#HttpOnly_//g' -i /mnt/network/cookies 250 echo "$URL|Referer=$REFERER&X-f=95.91.79.87&User-Agent=$USERAGENT" 251 } 252 243 253 244 254 directstream() … … 296 306 redirector|googlevideo|vodcloud|google) directstream "$INPUT";; 297 307 aliez) aliez $INPUT;; 308 sport7) sport7 $INPUT;; 298 309 esac 299 310 fi
Note: See TracChangeset
for help on using the changeset viewer.