Ignore:
Timestamp:
01/31/16 23:08:26 (6 years ago)
Author:
obi
Message:

update nba

File:
1 edited

Legend:

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

    r37014 r37016  
    1414URL=http://livetv.sx
    1515PARSER=`echo $SRC | tr '/' '\n' | tail -n1 | sed 's/.sh//'`
    16 NAME=NBA-On-Demand
    17 
    18 curlbin="curl -k -s -v -L --cookie /mnt/network/cookies --cookie-jar /mnt/network/cookies --user-agent 'Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Maxthon/4.4.7.3000 Chrome/30.0.1599.101 Safari/537.36'"
     16NAME=MNT-NBA-On-Demand
     17
     18curlbin='curl -k -s -v -L --cookie /mnt/network/cookies --cookie-jar /mnt/network/cookies --url'
     19useragent="Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Maxthon/4.4.7.3000 Chrome/30.0.1599.101 Safari/537.36"
     20
    1921wgetbin="wget -q -T2"
    2022TMP=/tmp/parser
     
    3739init()
    3840{
     41        rm -f /mnt/network/cookies > /dev/null 2>&1
    3942        rm -rf $TMP > /dev/null 2>&1
    4043        echo "$NAME ($TYPE)#$SRC $SRC mainmenu#http://atemio.dyndns.tv/mediathek/menu/$PARSER.jpg#$PARSER.jpg#TiThek#0"
     
    5053category()
    5154{
    52         echo "Live#$SRC $SRC live init#http://atemio.dyndns.tv/mediathek/menu/categoty.jpg#live.jpg#$NAME#0" > $TMP/$PARSER.$INPUT.list
     55        echo "Live#$SRC $SRC live init de#http://atemio.dyndns.tv/mediathek/menu/categoty.jpg#categoty.jpg#$NAME#0" > $TMP/$PARSER.$INPUT.list
    5356        echo "Latest#$SRC $SRC videos latest en/videotourney/3#http://atemio.dyndns.tv/mediathek/menu/categoty.jpg#categoty.jpg#$NAME#0" >> $TMP/$PARSER.$INPUT.list
    5457        echo "Teams#$SRC $SRC submenu teams en/leagueresults/3/#http://atemio.dyndns.tv/mediathek/menu/categoty.jpg#categoty.jpg#$NAME#0" >> $TMP/$PARSER.$INPUT.list
     
    6063        if [ ! -e "$TMP/$PARSER.$INPUT.$FROM.$FILENAME.list" ]; then
    6164                piccount=0
    62                 $curlbin $URL/$PAGE -o $TMP/cache.$PARSER.$FROM.$FILENAME.1     
    63 
    64                 cat $TMP/cache.$PARSER.$FROM.$FILENAME.1 | tr '\n' ' ' | sed 's!<img width=27!\nfound=!g' | grep '^found=' | grep nba.gif | grep -v nhl >$TMP/cache.$PARSER.$FROM.$FILENAME.2
     65                $wgetbin $URL/$PAGE -O $TMP/cache.$PARSER.$FROM.$FILENAME.1
     66
     67                zcat $TMP/cache.$PARSER.$FROM.$FILENAME.1 | tr '\n' ' ' | sed 's!<img width=27!\nfound=!g' | grep '^found=' | grep nba.gif | grep -v nhl >$TMP/cache.$PARSER.$FROM.$FILENAME.2
    6568
    6669                while read -u 3 ROUND; do
     
    107110        if [ ! -e "$TMP/$PARSER.$INPUT.$FROM.$FILENAME.list" ]; then
    108111                piccount=0
    109                 $curlbin $URL/$PAGE -o $TMP/cache.$PARSER.$FROM.$FILENAME.1     
     112                $curlbin $URL/$PAGE -o $TMP/cache.$PARSER.$FROM.$FILENAME.1     $curlopt
    110113               
    111114                cat $TMP/cache.$PARSER.$FROM.$FILENAME.1 | tr '\n' ' ' | sed "s!show_webplayer('!\nfound=('!g" | sed 's!src="!\nsrc="!g' | grep '^found=' >$TMP/cache.$PARSER.$FROM.$FILENAME.2
     
    128131                                piccount=`expr $piccount + 1`
    129132
    130                                 URL="$SRC $SRC videos $FROM $URL"
     133                                URL="$URL"
    131134
    132135                                LINE="$TITLE#$URL#$PIC#$PARSER_$piccount.jpg#$NAME#98"
Note: See TracChangeset for help on using the changeset viewer.