Changeset 41273 for titan/mediathek


Ignore:
Timestamp:
Nov 24, 2017, 5:42:53 PM (3 years ago)
Author:
obi
Message:

fix alize

File:
1 edited

Legend:

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

    r41218 r41273  
    232232}
    233233
     234aliezold()
     235{
     236        URL=`$curlbin "$INPUT" | sed 's/source:/\nsource:/' | grep ^source: | cut -d"'" -f2`
     237        REFERER=`echo "$INPUT" | sed -e 's/=/3D/g' -e 's/&/26/g'`
     238        echo "$URL|Referer=$REFERER&User-Agent=$USERAGENT"
     239}
     240
    234241aliez()
    235242{
    236243        #http://emb.aliez.me/player/live.php?id=56180&w=700&h=480"
    237         URL=`$curlbin "$INPUT" | sed 's/source:/\nfound=/' | grep ^found= | cut -d"'" -f2`
    238         REFERER=`echo "$INPUT" | sed -e 's/=/3D/g' -e 's/&/26/g'`
    239         echo "$URL|Referer=$REFERER&User-Agent=$USERAGENT"
     244        $curlbin "$INPUT" -o $TMP/cache.$hoster.1
     245        cat $TMP/cache.$hoster.1 | sed 's/source:/\nfound=/' | grep ^found= | cut -d"'" -f2 >$TMP/cache.$hoster.url1
     246        URL=`cat $TMP/cache.$hoster.url1 | head -n1`
     247
     248#URL=""
     249        #"file":                "rtmp%3A%2F%2Fa3.aliez.me%2Flive%2Fstreama57449%3Ftoken%3Dd11304fabb8e64327df8427e1c2fd5d9"
     250        if [ -z "$URL" ];then
     251                cat $TMP/cache.$hoster.1 | sed 's/"file":/\nfound=/' | grep ^found= | cut -d'"' -f2 >$TMP/cache.$hoster.url3
     252                URL=`cat $TMP/cache.$hoster.url3 | head -n1`
     253        fi
     254        REFERER=`echo "$INPUT" | sed -e 's/=/%3D/g' -e 's/&/%26/g'`
     255        EXTRA="|Referer=$REFERER&User-Agent=$USERAGENT"
     256
     257        if [ "`echo $URL | grep rtmp | wc -l`" -eq 1 ];then
     258
     259                #new swfobject.embedSWF("http://i.aliez.me/swf/playernew.swf?0", "mediaspace", "700", "480", "9.0.115.0", false, flashvars, params);
     260                cat $TMP/cache.$hoster.1 | sed 's/swfobject.embedSWF/\nfound=/' | grep ^found= | cut -d'"' -f2 >$TMP/cache.$hoster.rtmp.swfurl
     261                SWFURL=`cat $TMP/cache.$hoster.rtmp.swfurl | head -n1`
     262                URL=`echo "$URL" | sed -e 's/%3A/:/g' -e 's!%2F!/!g' -e 's!%3D!=!g' -e 's!%3F!?!g'`
     263                EXTRA=" pageUrl=$REFERER"
     264                if [ ! -z "$SWFURL" ];then
     265                        EXTRA="$EXTRA swfUrl=$SWFURL swfVfy=1 timeout=15 live=1"
     266                fi
     267        fi
     268
     269#       URL=""
     270        #file:  'http://a3.aliez.me:8080/hls/streama57449/index.m3u8?st=dgw2dOq8tyFkLLBLn2ycXA',
     271        if [ -z "$URL" ];then
     272                cat $TMP/cache.$hoster.1 | sed 's/file:/\nfound=/' | grep ^found= | cut -d"'" -f2 >$TMP/cache.$hoster.url2
     273                URL=`cat $TMP/cache.$hoster.url2 | head -n1`
     274                EXTRA="|Referer=$REFERER&User-Agent=$USERAGENT"
     275        fi
     276
     277        echo "$URL$EXTRA"
     278#       echo "$URL|If-None-Match=5a1842ad-c4&Accept=*/*&Referer=$REFERER&User-Agent=Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.113 Safari/537.36"
     279
     280
    240281}
    241282
Note: See TracChangeset for help on using the changeset viewer.