Ignore:
Timestamp:
01/03/20 04:01:37 (4 years ago)
Author:
obi
Message:

fix sportsondemand alize

File:
1 edited

Legend:

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

    r44472 r44481  
    658658}
    659659
     660#pl.init('http://78.142.19.151:8080/hls/streama113384/index.m3u8?st=dxSilE8xi3eR1Hk5_SLv1w');
     661#apl3
     662apl3()
     663{
     664        #http://assia.tv/live/gol-tv/?lang=ru
     665        rm -f $TMP/cache.hoster.$hoster.* > /dev/null 2>&1
     666        REFERER=`echo "$INPUT" | sed -e 's/=/%3D/g' -e 's/&/%26/g'`
     667        EXTRA="|Referer=$REFERER&User-Agent=$USERAGENT"
     668
     669        STREAMLIST="$TMP/$TYPE.$hoster.$FILENAME.streamlist"
     670        if [ -e "$STREAMLIST" ];then
     671                rm -f $STREAMLIST > /dev/null 2>&1
     672        fi
     673
     674        $curlbin "$INPUT" -o $TMP/cache.hoster.$hoster.1
     675        #pl.init('http://87.120.36.57:8080/hls/streama113535/index.m3u8?st=VsL7dEPX4fBHn3tcJmmcKw');
     676        TMPURL=$(cat $TMP/cache.hoster.$hoster.1 | grep pl.init | cut -d"'" -f2)
     677        # enable httponly cookie
     678        sed 's/#HttpOnly_//g' -i /mnt/network/cookies
     679
     680        if [ ! -z "$TMPURL" ];then
     681                #hls://http://tier2.pokercoalition.pw/o10/17733.m3u8?sf=NTk5NGE3YzRhMzljNQ==&token=jvVfe9gic8uQ3QqCXmZemw&expires=1512879969|Referer=http%3A%2F%2Fbro.adca.st%2Fstream.php%3Fid%3D17733%26p%3D1%26c%3D0%26stretching%3Duniform%26old%3D0&User-Agent=Mozilla%2F5.0%20(Windows%20NT%2010.0%3B%20Win64%3B%20x64)%20AppleWebKit%2F537.36%20(KHTML,%20like%20Gecko)%20Chrome%2F61.0.3163.100%20Safari%2F537.36
     682                echo "$TMPURL$TOKEN$EXTRA" > $STREAMLIST
     683                echo "$STREAMLIST"
     684        fi
     685}
     686
    660687broadcast()
    661688{
     
    804831}
    805832
     833
    806834if [ "$TYPE" == "get" ];then
    807835        echo  "$INPUT" > /tmp/.last_hoster_$TYPE_$hoster.log
    808836        case $hoster in
     837                apl3) apl3 $INPUT;;
    809838                ecostream) ecostream $INPUT;;
    810839                giga) giga $INPUT;;
Note: See TracChangeset for help on using the changeset viewer.