Changeset 37148 for titan/mediathek/localhoster
- Timestamp:
- 02/15/16 01:05:28 (8 years ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
titan/mediathek/localhoster/hoster.sh
r37147 r37148 1 ecostream($link) 1 #!/bin/sh 2 # first sh box hoster for titannit mfg obi 3 4 INPUT=$1 5 6 hoster=`echo $INPUT | tr 'A-Z' 'a-z' | sed 's!http://!!' | sed 's!https://!!' | cut -d'/' -f1 | sed 's/www.//' | tr '.' '\n' | head -n1` 7 8 debuglevel=`cat /mnt/config/titan.cfg | grep debuglevel | cut -d"=" -f2` 9 curlbin='curl -k -s -L --cookie /mnt/network/cookies --cookie-jar /mnt/network/cookies' 10 if [ "$debuglevel" == "99" ]; then curlbin="$curlbin -v"; fi 11 12 ecostream() 2 13 { 3 debuglevel=`cat /mnt/config/titan.cfg | grep debuglevel | cut -d"=" -f2`4 curlbin='curl -k -s -L --cookie /mnt/network/cookies --cookie-jar /mnt/network/cookies'5 if [ "$debuglevel" == "99" ]; then curlbin="$curlbin -v"; fi6 14 hosterurl=http://www.ecostream.tv 7 8 data="tpm=`$curlbin $link | grep footerhash | cut -d"'" -f2``$curlbin $link | grep superslots | cut -d"'" -f2`&id=`$curlbin $link | grep data-id | cut -d'"' -f4`" 15 data="tpm=`$curlbin $1 | grep footerhash | cut -d"'" -f2``$curlbin $1 | grep superslots | cut -d"'" -f2`&id=`$curlbin $1 | grep data-id | cut -d'"' -f4`" 9 16 streampage=`$curlbin $hosterurl/js/ecoss.js | grep "$.post('" | grep videos | cut -d"'" -f2` 10 streamurl=$hosterurl`$curlbin -H "X-Requested-With: XMLHttpRequest" -X POST --data "$data" --referer $ src$hosterurl/$streampage | cut -d'"' -f6`17 streamurl=$hosterurl`$curlbin -H "X-Requested-With: XMLHttpRequest" -X POST --data "$data" --referer $1 $hosterurl/$streampage | cut -d'"' -f6` 11 18 if [ "$streamurl" != "$hosterurl" ];then 12 19 echo $streamurl 13 else14 echo NULL15 20 fi 16 21 } 22 23 case $hoster in 24 ecostream) ecostream $1;; 25 esac 26 27 exit
Note: See TracChangeset
for help on using the changeset viewer.