Changeset 41303 for titan/mediathek


Ignore:
Timestamp:
Nov 27, 2017, 12:25:05 AM (2 years ago)
Author:
obi
Message:

tithek add livehoster sportstream365.com

Location:
titan/mediathek
Files:
1 added
1 edited

Legend:

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

    r41300 r41303  
    332332#       echo "$URL|Referer=$REFERER&X-f=96.91.79.87&User-Agent=$USERAGENT"
    333333#       cat $STREAMLIST
     334}
     335
     336sportstream365()
     337{
     338        #http://sport7.tech/487b826914d11080dce4b502052b012d-live.html
     339        #var videoLink = 'http://g4.securestream.sport7.tech/stream/NzYyZDUwZWNkODc5YWM5YjViY2ZkOTVhZGNjOGM1ZTc=/BTSport3.m3u8';
     340
     341        rm -f $TMP/cache.hoster.$hoster.* > /dev/null 2>&1
     342#       REFERER=`echo "$INPUT" | sed -e 's/=/%3D/g' -e 's/&/%26/g'`
     343        REFERER=`echo "$INPUT" | sed -e 's/=/%3D/g' -e 's/&/%26/g'`
     344        EXTRA="|Referer=$REFERER&User-Agent=$USERAGENT"
     345
     346        STREAMLIST="$TMP/$TYPE.$hoster.$FILENAME.streamlist"
     347        if [ -e "$STREAMLIST" ];then
     348                rm -f $STREAMLIST > /dev/null 2>&1
     349        fi
     350
     351        $curlbin "$INPUT" -o $TMP/cache.hoster.$hoster.1
     352
     353        #<input type="hidden" name="game" value="146875046">
     354        id=$(cat $TMP/cache.hoster.$hoster.1 | sed -nr 's/.*name="game" value="([^"]+)".*/\1/p')
     355        ts=$(date +%s)
     356        URL="http://sportstream365.com/LiveFeed/GetGame?id=$id&partner=24"
     357
     358        $curlbin "$URL" --referer "$REFERER" -H "X-Requested-With: ShockwaveFlash/27.0.0.187" -o $TMP/cache.hoster.$hoster.2
     359
     360
     361        #"VI":"1032572"
     362        id=$(cat $TMP/cache.hoster.$hoster.2 | sed -nr 's/.*"VI" :"([^"]+)".*/\1/p')
     363        if [ -z "$id" ];then
     364                id=$(cat $TMP/cache.hoster.$hoster.2 | sed -nr 's/.*"VI":"([^"]+)".*/\1/p')
     365        fi
     366        #https://github.com/XvBMC/repository.xvbmc/blob/master/Dependencies/script.module.liveresolver/lib/liveresolver/resolvers/sportstream365.py
     367        URL=http://93.189.57.254/edge0/xrecord/$id/prog_index.m3u8
     368        # enable httponly cookie
     369        sed 's/#HttpOnly_//g' -i /mnt/network/cookies
     370
     371        if [ ! -z "$URL" ];then
     372                echo "$URL$EXTRA" > $STREAMLIST
     373                #echo "$URL$EXTRA"
     374                echo "$STREAMLIST"
     375        fi
     376}
     377
     378
     379all()
     380{
     381        rm -f $TMP/cache.hoster.$hoster.* > /dev/null 2>&1
     382        REFERER=`echo "$INPUT" | sed -e 's/=/%3D/g' -e 's/&/%26/g'`
     383        EXTRA="|Referer=$REFERER&User-Agent=$USERAGENT"
     384
     385        STREAMLIST="$TMP/$TYPE.$hoster.$FILENAME.streamlist"
     386        if [ -e "$STREAMLIST" ];then
     387                rm -f $STREAMLIST > /dev/null 2>&1
     388        fi
     389
     390        rm $TMP/cache.$PARSER.$INPUT.$FROM.1 > /dev/null 2>&1
     391
     392        $curlbin -o $TMP/cache.$PARSER.$INPUT.$FROM.1 ${1}
     393        URL=`zcat $TMP/cache.$PARSER.$INPUT.$FROM.1 | grep iframe | sed -nr 's/.*src="([^"]+)".*/\1/p'`
     394        if [ -z "$URL" ];then
     395                URL=`cat $TMP/cache.$PARSER.$INPUT.$FROM.1 | grep iframe | sed -nr 's/.*src="([^"]+)".*/\1/p'`
     396        fi
     397        if [ -z "$URL" ];then
     398                URL=`cat $TMP/cache.$PARSER.$INPUT.$FROM.1 | grep "text/javascript" | grep -v jQuery | sed -nr 's/.*src="([^"]+)".*/\1/p'`
     399        fi
     400
     401#       echo $URL
     402        $curlbin "$INPUT" -o $TMP/cache.hoster.$hoster.2
    334403}
    335404
     
    431500                aliez) aliez $INPUT;;
    432501                sport7) sport7 $INPUT;;
     502                sportstream365) sportstream365 $INPUT;;
     503                *) all $INPUT;;
     504
    433505        esac
    434506fi
Note: See TracChangeset for help on using the changeset viewer.