Changeset 41300 for titan/mediathek


Ignore:
Timestamp:
Nov 26, 2017, 7:03:31 PM (2 years ago)
Author:
obi
Message:

tithek fix livehoster sport7

File:
1 edited

Legend:

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

    r41291 r41300  
    304304        #http://sport7.tech/487b826914d11080dce4b502052b012d-live.html
    305305        #var videoLink = 'http://g4.securestream.sport7.tech/stream/NzYyZDUwZWNkODc5YWM5YjViY2ZkOTVhZGNjOGM1ZTc=/BTSport3.m3u8';
    306            
    307         URL=`$curlbin "$INPUT" | sed 's/var videoLink/\nfound=/' | grep ^found= | cut -d"'" -f2`
    308         REFERER=`echo "$INPUT" | sed -e 's/=/3D/g' -e 's/&/26/g'`
     306
     307        rm -f $TMP/cache.hoster.$hoster.* > /dev/null 2>&1
     308        REFERER=`echo "$INPUT" | sed -e 's/=/%3D/g' -e 's/&/%26/g'`
     309        EXTRA="|Referer=$REFERER&User-Agent=$USERAGENT"
     310
     311        STREAMLIST="$TMP/$TYPE.$hoster.$FILENAME.streamlist"
     312        if [ -e "$STREAMLIST" ];then
     313                rm -f $STREAMLIST > /dev/null 2>&1
     314        fi
     315
     316        $curlbin "$INPUT" -o $TMP/cache.hoster.$hoster.1
     317        cat $TMP/cache.hoster.$hoster.1 | sed 's/var videoLink/\nfound=/' | grep ^found= | cut -d"'" -f2 >$TMP/cache.hoster.$hoster.url1
     318        URL=`cat $TMP/cache.hoster.$hoster.url1 | head -n1`
     319        # enable httponly cookie
    309320        sed 's/#HttpOnly_//g' -i /mnt/network/cookies
    310         echo "$URL|Referer=$REFERER&X-f=95.91.79.87&User-Agent=$USERAGENT"
     321
     322        if [ ! -z "$URL" ];then
     323                echo "$URL$EXTRA" > $STREAMLIST
     324                #echo "$URL$EXTRA"
     325                echo "$STREAMLIST"
     326        fi
     327       
     328       
     329#       URL=`$curlbin "$INPUT" | sed 's/var videoLink/\nfound=/' | grep ^found= | cut -d"'" -f2`
     330#       REFERER=`echo "$INPUT" | sed -e 's/=/3D/g' -e 's/&/26/g'`
     331#       sed 's/#HttpOnly_//g' -i /mnt/network/cookies
     332#       echo "$URL|Referer=$REFERER&X-f=96.91.79.87&User-Agent=$USERAGENT"
     333#       cat $STREAMLIST
    311334}
    312335
Note: See TracChangeset for help on using the changeset viewer.