Changeset 41275 for titan/mediathek


Ignore:
Timestamp:
Nov 25, 2017, 2:57:11 AM (2 years ago)
Author:
obi
Message:

fix

File:
1 edited

Legend:

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

    r41274 r41275  
    1515USERAGENT='Mozilla%2F5.0+%28Windows+NT+6.3%3B+rv%3A36.0%29+Gecko%2F20100101+Firefox%2F36.0'
    1616debuglevel=`cat /mnt/config/titan.cfg | grep debuglevel | cut -d"=" -f2`
    17 curlbin="curl -k -s -L --cookie /mnt/network/cookies --cookie-jar /mnt/network/cookies -A \$USERAGENT"
    18 curlbin2="curl -k -s --cookie /mnt/network/cookies --cookie-jar /mnt/network/cookies -A '$USERAGENT'"
    19 youtubebin="$CMD/lib/youtube_dl/__main__.py --no-check-certificate --cookies /mnt/network/cookies --user-agent '$USERAGENT' --format mp4 --restrict-filenames --ignore-errors -g"
    20 youtubebinbg="$CMD/lib/youtube_dl/__main__.py --no-check-certificate --cookies /mnt/network/cookies --user-agent '$USERAGENT' --format mp4 --restrict-filenames --ignore-errors --output"
     17curlbin="curl -k -s -L --cookie /mnt/network/cookies --cookie-jar /mnt/network/cookies -A $USERAGENT"
     18curlbin2="curl -k -s --cookie /mnt/network/cookies --cookie-jar /mnt/network/cookies -A $USERAGENT"
     19youtubebin="$CMD/lib/youtube_dl/__main__.py --no-check-certificate --cookies /mnt/network/cookies --user-agent $USERAGENT --format mp4 --restrict-filenames --ignore-errors -g"
     20youtubebinbg="$CMD/lib/youtube_dl/__main__.py --no-check-certificate --cookies /mnt/network/cookies --user-agent $USERAGENT --format mp4 --restrict-filenames --ignore-errors --output"
    2121export PYTHONHOME=/tmp/localhoster
    2222export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/tmp/localhoster/lib
     
    239239}
    240240
    241 aliez()
     241aliez1()
    242242{
    243243        #http://emb.aliez.me/player/live.php?id=56180&w=700&h=480"
     
    280280
    281281}
     282
     283        #http://emb.aliez.me/player/live.php?id=56180&w=700&h=480"
     284        REFERER=`echo "$INPUT" | sed -e 's/=/%3D/g' -e 's/&/%26/g'`
     285        EXTRA="|Referer=$REFERER&User-Agent=$USERAGENT"
     286
     287        $curlbin "$INPUT" -o $TMP/cache.$hoster.1
     288        cat $TMP/cache.$hoster.1 | sed 's/source:/\nfound=/' | grep ^found= | cut -d"'" -f2 >$TMP/cache.$hoster.url1
     289        URL=`cat $TMP/cache.$hoster.url1 | head -n1`
     290        URLMP41="$URL$EXTRA"
     291
     292#       URL=""
     293        #file:  'http://a3.aliez.me:8080/hls/streama57449/index.m3u8?st=dgw2dOq8tyFkLLBLn2ycXA',
     294
     295        cat $TMP/cache.$hoster.1 | sed 's/file:/\nfound=/' | grep ^found= | cut -d"'" -f2 >$TMP/cache.$hoster.url2
     296        URL=`cat $TMP/cache.$hoster.url2 | head -n1`
     297        URLMP42="$URL$EXTRA"
     298
     299#URL=""
     300        #"file":                "rtmp%3A%2F%2Fa3.aliez.me%2Flive%2Fstreama57449%3Ftoken%3Dd11304fabb8e64327df8427e1c2fd5d9"
     301        cat $TMP/cache.$hoster.1 | sed 's/"file":/\nfound=/' | grep ^found= | cut -d'"' -f2 >$TMP/cache.$hoster.url3
     302        URL=`cat $TMP/cache.$hoster.url3 | head -n1`
     303
     304        if [ "`echo $URL | grep rtmp | wc -l`" -eq 1 ];then
     305                #new swfobject.embedSWF("http://i.aliez.me/swf/playernew.swf?0", "mediaspace", "700", "480", "9.0.115.0", false, flashvars, params);
     306                cat $TMP/cache.$hoster.1 | sed 's/swfobject.embedSWF/\nfound=/' | grep ^found= | cut -d'"' -f2 >$TMP/cache.$hoster.rtmp.swfurl
     307                SWFURL=`cat $TMP/cache.$hoster.rtmp.swfurl | head -n1`
     308                URL=`echo "$URL" | sed -e 's/%3A/:/g' -e 's!%2F!/!g' -e 's!%3D!=!g' -e 's!%3F!?!g'`
     309                EXTRA=" pageUrl=$REFERER"
     310                if [ ! -z "$SWFURL" ];then
     311                        EXTRA="$EXTRA swfUrl=$SWFURL swfVfy=1 timeout=15 live=1"
     312                fi
     313                URLRTMP="$URL$EXTRA"
     314        fi
     315
     316        STREAMLIST="$TMP/$PARSER.$INPUT.$FROM.$FILENAME.streamlist"
     317        if [ -e "$STREAMLIST" ];then
     318                rm -f $STREAMLIST
     319        fi
     320        for ROUND in $URLMP42 $URLMP41 $URLRTMP; do
     321                echo "$ROUND" >> $STREAMLIST
     322        done
     323        URL=$STREAMLIST
     324
     325
     326        echo "$URL"
    282327
    283328sport7()
Note: See TracChangeset for help on using the changeset viewer.