Changeset 39801


Ignore:
Timestamp:
01/25/17 03:15:23 (6 years ago)
Author:
obi
Message:

nexz fix nba

File:
1 edited

Legend:

Unmodified
Added
Removed
  • titan/mediathek/localparser_secret/nbaondemand.sh

    r39800 r39801  
    146146play()
    147147{
     148#echo 1111111
    148149        if [ ! -e "$TMP/$PARSER.$INPUT.$FROM.$FILENAME.list" ]; then
    149150                piccount=0
    150151
    151152                $curlbin $URL/$PAGE -o $TMP/cache.$PARSER.$INPUT.$FROM.$FILENAME.1
     153#echo 222222
    152154
    153155                cat $TMP/cache.$PARSER.$INPUT.$FROM.$FILENAME.1 | tr '\n' ' ' | tr '\n' ' ' | tr '\t' ' ' | sed 's/ \+/ /g' | sed 's!<iframe src=!\nfound=!g' | sed 's!<br> </td>!\n<br> </td>!g' | grep '^found=' | grep 'video/embed' | cut -d"'" -f2 >$TMP/cache.$PARSER.$INPUT.$FROM.$FILENAME.2
    154156                if [ `cat $TMP/cache.$PARSER.$INPUT.$FROM.$FILENAME.2 | wc -l` -gt 0 ];then
     157#echo 333333
     158
    155159                        URLTMP=`cat $TMP/cache.$PARSER.$INPUT.$FROM.$FILENAME.2`
     160                        URLTMP=`echo $URLTMP | sed 's/true http/http/'`
     161
    156162                        $curlbin $URLTMP --referer $URL$PAGE -o $TMP/cache.$PARSER.$INPUT.$FROM.$FILENAME.3
    157163        #               "flashVars": {"autoplay":0,"movieSrc":"mail/arsen.bulyaev/_myvideo/738","metadataUrl":"//my.mail.ru/+/video/meta/4219658639352267490","showPauseRoll":"0","enable_search":"2","swfVersion":"29","static_version":"75","flash_enabled":"1"},
     
    166172        #eplayer3 "http://cdn41.my.mail.ru/v/60128796.mp4?sign=43ff6ef971dd635bbff0a57a061a3548cfaceef8&slave[]=s%3Ahttp%3A%2F%2F127.0.0.1%3A5010%2F60128796-v.mp4&p=f&expire_at=1477882800&touch=1477731621&reg=202&region=202"
    167173                else
     174#echo 4444444
     175
    168176#               <iframe allowFullScreen allowFullScreen frameborder=0 marginheight=0 marginwidth=0 scrolling='no'src="http://emb.aliez.me/player/video.php?id=47383&s=t67axfnq&w=590&h=384" width="590" height="384">Your browser does not support inline frames or is currently configured not to display inline frames.</iframe>
    169177#                   <iframe allowFullScreen src="//livetv141.net/export/vk.reframe.php?ur4=http://vk.com/video_ext.php?oid=-55574239&id=456242297&hash=f78096b994400693&hd=1" width="600" height="338" frameborder="0" allowfullscreen></iframe>
     
    176184                        fi
    177185
    178                         URLTMP=`cat $TMP/cache.$PARSER.$INPUT.$FROM.$FILENAME.2`
     186                        URLTMP=`cat $TMP/cache.$PARSER.$INPUT.$FROM.$FILENAME.2 | sed 's/true http/http/'`
     187#echo 55555511a $URLTMP
     188                        URLTMP=`echo $URLTMP | sed 's/true http/http/'`
     189
    179190                        if [ `echo $URLTMP | grep ^"//" | wc -l` -eq 1 ];then
    180191                                URLTMP=http:$URLTMP
     
    183194
    184195                        if [ `echo $URLTMP | grep "export/vk.reframe.php" | wc -l` -eq 1 ];then
     196#echo 55555522 $URLTMP
     197
     198#echo 555555
     199
    185200                                referer=$URLTMP
    186201                                $curlbin $URLTMP --referer $URL$PAGE -o $TMP/cache.$PARSER.$INPUT.$FROM.$FILENAME.3
     
    188203                                cat $TMP/cache.$PARSER.$INPUT.$FROM.$FILENAME.3 | tr '\n' ' ' | tr '\n' ' ' | tr '\t' ' ' | sed 's/ \+/ /g' | sed 's!<iframe src=!\nfound=!g' | grep '^found=' | cut -d'"' -f2 | head -n1 >$TMP/cache.$PARSER.$INPUT.$FROM.$FILENAME.4
    189204                                URLTMP=`cat $TMP/cache.$PARSER.$INPUT.$FROM.$FILENAME.4`
     205                                URLTMP=`echo $URLTMP | sed 's/true http/http/'`
     206
    190207                                $curlbin $URLTMP --referer $URL$PAGE -o $TMP/cache.$PARSER.$INPUT.$FROM.$FILENAME.5
    191208                                cat $TMP/cache.$PARSER.$INPUT.$FROM.$FILENAME.5 | grep vk.com | sed 's!href=!\nfound=!' | grep ^found | cut -d '"' -f2 | head -n1 >$TMP/cache.$PARSER.$INPUT.$FROM.$FILENAME.6
    192209                                URLTMP=`cat $TMP/cache.$PARSER.$INPUT.$FROM.$FILENAME.6`
     210                                URLTMP=`echo $URLTMP | sed 's/true http/http/'`
    193211                                if [ `echo $URLTMP | grep ^"//" | wc -l` -eq 1 ];then
    194212                                        URLTMP=https:$URLTMP
     
    217235                                cat $TMP/cache.$PARSER.$INPUT.$FROM.$FILENAME.3 | tr '\n' ' ' | tr '\n' ' ' | tr '\t' ' ' | sed 's/ \+/ /g' | sed 's!<iframe src=!\nfound=!g' | grep '^found=' | cut -d'"' -f2 | head -n1 >$TMP/cache.$PARSER.$INPUT.$FROM.$FILENAME.11
    218236                                URLTMP=`cat $TMP/cache.$PARSER.$INPUT.$FROM.$FILENAME.11`
     237                                URLTMP=`echo $URLTMP | sed 's/true http/http/'`
    219238
    220239                                $curlbin $URLTMP --referer "$referer" -o $TMP/cache.$PARSER.$INPUT.$FROM.$FILENAME.12
     
    226245                                fi
    227246                        elif [ `echo $URLTMP | grep "/embed/" | wc -l` -eq 1 ];then
     247#echo 666666
     248
    228249                                $curlbin $URLTMP --referer $URL$PAGE -o $TMP/cache.$PARSER.$INPUT.$FROM.$FILENAME.3
    229250                #               "flashVars": {"autoplay":0,"movieSrc":"mail/arsen.bulyaev/_myvideo/738","metadataUrl":"//my.mail.ru/+/video/meta/4219658639352267490","showPauseRoll":"0","enable_search":"2","swfVersion":"29","static_version":"75","flash_enabled":"1"},
     
    239260                                URL=`cat $TMP/cache.$PARSER.$INPUT.$FROM.$FILENAME.6`
    240261                        else
    241                                 $curlbin `echo $URLTMP | sed 's/true http/http/'` --referer $URL$PAGE -o $TMP/cache.$PARSER.$INPUT.$FROM.$FILENAME.3
     262#echo 7777777 $URLTMP
     263                                URLTMP=`echo $URLTMP | sed 's/true http/http/'`
     264                                echo $curlbin $URLTMP --referer $URL$PAGE -o $TMP/cache.$PARSER.$INPUT.$FROM.$FILENAME.3
    242265                                cat $TMP/cache.$PARSER.$INPUT.$FROM.$FILENAME.3 | tr '\n' ' ' | tr '\n' ' ' | tr '\t' ' ' | sed 's/ \+/ /g' | sed 's!file:!\nfound=!g' | grep '^found=' | cut -d"'" -f2 | head -n1 >$TMP/cache.$PARSER.$INPUT.$FROM.$FILENAME.4
    243266                                URL=`cat $TMP/cache.$PARSER.$INPUT.$FROM.$FILENAME.4`
Note: See TracChangeset for help on using the changeset viewer.