Ignore:
Timestamp:
12/28/16 22:20:01 (5 years ago)
Author:
obi
Message:

next step

File:
1 edited

Legend:

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

    r39521 r39525  
    5252
    5353        piccount=0
    54         $curlbin "$URL/$PAGE" -o "$TMP/cache.$PARSER.$INPUT.1" -A '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'
     54        /tmp/localhoster/hoster.sh get $URL/$PAGE > $TMP/cache.$PARSER.$INPUT.1
     55#       $curlbin "$URL/$PAGE" -o "$TMP/cache.$PARSER.$INPUT.1" -A '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'
    5556        cat $TMP/cache.$PARSER.$INPUT.1 | tr '\n' '\r' |  tr '\r' ' ' | tr '\n' ' ' | tr '\t' ' ' | sed 's/ \+/ /g' | sed 's!tablemoviesindex!\ntablemoviesindex!g' | grep ^"tablemoviesindex" | sed 's!coverPreview!\ncoverPreview!g' | grep ^"coverPreview" | grep 'id="tdmovies"' >$TMP/cache.$PARSER.$INPUT.2
    5657
     
    118119        fi
    119120#       $curlbin $URL/$PAGE -o $TMP/cache.$PARSER.$INPUT.1 -A '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'
    120 /tmp/localhoster/hoster.sh get $URL/$PAGE > $TMP/cache.$PARSER.$INPUT.1
    121 #
    122 #       $curlbin $URL/$PAGE -o $TMP/cache.$PARSER.$INPUT.1
    123 #       /tmp/localhoster/hoster.sh get $URL/$PAGE > $TMP/cache.$PARSER.$INPUT.1
     121        /tmp/localhoster/hoster.sh get $URL/$PAGE > $TMP/cache.$PARSER.$INPUT.1
    124122
    125123        cat $TMP/cache.$PARSER.$INPUT.1 | grep ^"links\[" >$TMP/cache.$PARSER.$INPUT.2
     
    129127                TITLE=`echo $ROUND | sed 's!&nbsp;!\nfound=<!g' | grep ^"found=<" | cut -d"<" -f2`             
    130128       
    131 
    132 #echo NEWPAGE $NEWPAGE
    133 #echo TITLE $TITLE
    134 
    135 #               exit
    136129                if [ ! -z "$TITLE" ] && [ "$TITLE" != " " ] && [ ! -z "$NEWPAGE" ];then
    137130                        PIC=`echo $TITLE | tr [A-Z] [a-z]`
    138131#                       LINE="$TITLE#$SRC $SRC hoster $NEWPAGE '--referer $URL/$PAGE'#http://atemio.dyndns.tv/mediathek/menu/$PIC.jpg#$PIC.jpg#$NAME#111"
    139                         LINE="$TITLE#$URL/$NEWPAGE#http://atemio.dyndns.tv/mediathek/menu/$PIC.jpg#$PIC.jpg#$NAME#41"
     132                        LINE="$TITLE#$SRC $SRC hoster $NEWPAGE#http://atemio.dyndns.tv/mediathek/menu/$PIC.jpg#$PIC.jpg#$NAME#111"
     133
     134#                       LINE="$TITLE#$URL/$NEWPAGE#http://atemio.dyndns.tv/mediathek/menu/$PIC.jpg#$PIC.jpg#$NAME#41"
    140135
    141136                        echo "$LINE" >> $TMP/$PARSER.$INPUT.list
     
    146141}
    147142
     143hoster()
     144{
     145        rm $TMP/cache.$PARSER.$INPUT.* > /dev/null 2>&1
     146#       $curlbin $URL/$PAGE -o $TMP/cache.$PARSER.$INPUT.1 -A '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'
     147        /tmp/localhoster/hoster.sh get $URL/$PAGE > $TMP/cache.$PARSER.$INPUT.1
     148       
     149        STREAMURL=`cat $TMP/cache.$PARSER.$INPUT.1 | sed 's!<a target="_blank" href="!\nstreamurl="!' | grep ^streamurl= | cut -d'"' -f2`
     150#       rm $TMP/cache.$PARSER.$INPUT.* > /dev/null 2>&1
     151        echo $STREAMURL
     152}
     153
    148154case $INPUT in
    149155        init) $INPUT;;
    150156        mainmenu) $INPUT;;
    151157        hosterlist) $INPUT;;
     158        hoster) $INPUT;;
    152159        search) $INPUT;;
    153160esac
Note: See TracChangeset for help on using the changeset viewer.