Changeset 41278 for titan/mediathek


Ignore:
Timestamp:
Nov 25, 2017, 3:36:28 AM (2 years ago)
Author:
obi
Message:

fix

File:
1 edited

Legend:

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

    r41275 r41278  
    239239}
    240240
    241 aliez1()
    242 {
    243         #http://emb.aliez.me/player/live.php?id=56180&w=700&h=480"
    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 
    281 }
    282 
     241aliez()
     242{
    283243        #http://emb.aliez.me/player/live.php?id=56180&w=700&h=480"
    284244        REFERER=`echo "$INPUT" | sed -e 's/=/%3D/g' -e 's/&/%26/g'`
     
    325285
    326286        echo "$URL"
     287#       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"
     288
     289
     290}
    327291
    328292sport7()
Note: See TracChangeset for help on using the changeset viewer.