Ignore:
Timestamp:
02/17/16 13:08:39 (6 years ago)
Author:
obi
Message:

fix localhoster

File:
1 edited

Legend:

Unmodified
Added
Removed
  • titan/mediathek/localhoster/hoster.sh

    r37157 r37175  
    22# first sh box hoster for titannit mfg obi
    33
    4 INPUT=$1
     4TYPE=$1
     5INPUT=$2
    56
    67ARCH=`cat /etc/.arch`
     
    2021{
    2122        hosterurl=http://www.ecostream.tv
    22         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`"
     23        data="tpm=`$curlbin $INPUT | grep footerhash | cut -d"'" -f2``$curlbin $INPUT | grep superslots | cut -d"'" -f2`&id=`$curlbin $INPUT | grep data-id | cut -d'"' -f4`"
    2324        streampage=`$curlbin $hosterurl/js/ecoss.js | grep "$.post('" | grep videos | cut -d"'" -f2`
    24         streamurl=$hosterurl`$curlbin -H "X-Requested-With: XMLHttpRequest" -X POST --data "$data" --referer $1 $hosterurl/$streampage | cut -d'"' -f6`
     25        streamurl=$hosterurl`$curlbin -H "X-Requested-With: XMLHttpRequest" -X POST --data "$data" --referer $INPUT $hosterurl/$streampage | cut -d'"' -f6`
    2526        if [ "$streamurl" != "$hosterurl" ];then
    2627                echo $streamurl
     
    2829}
    2930
    30 case $hoster in
    31         ecostream) ecostream $1;;
    32 esac
     31if [ "$TYPE" == "get" ];then
     32        case $hoster in
     33                ecostream) ecostream $INPUT;;
     34        esac
     35fi
Note: See TracChangeset for help on using the changeset viewer.