Ignore:
Timestamp:
02/13/16 22:05:54 (6 years ago)
Author:
obi
Message:

streamlive.sh fix

File:
1 edited

Legend:

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

    r37133 r37134  
     1
    12#!/bin/sh
    23# first sh box parser for titannit mfg obi
     
    67FROM=$3
    78PAGE=$4
     9
    810FILENAME=`echo $PAGE | tr '/' '.'`
     11FILENAME=`echo $FILENAME | tr '&' '.'`
     12
    913if [ -z "$PAGE" ]; then
    1014        FILENAME=none
     
    1216
    1317ARCH=`cat /etc/.arch`
    14 URL=http://cricfree.sx/
     18URL=www.streamlive.to
    1519PARSER=`echo $SRC | tr '/' '\n' | tail -n1 | sed 's/.sh//'`
    1620NAME=StreamLive
     
    5256}
    5357
     58#category()
     59#{
     60#       echo "Channels#$SRC $SRC list channels /#http://atemio.dyndns.tv/mediathek/menu/categoty.jpg#categoty.jpg#$NAME#0" > $TMP/$PARSER.$INPUT.list
     61#       echo "$TMP/$PARSER.$INPUT.list"
     62#}
     63
    5464category()
    5565{
    56         echo "Channels#$SRC $SRC list channels /#http://atemio.dyndns.tv/mediathek/menu/categoty.jpg#categoty.jpg#$NAME#0" > $TMP/$PARSER.$INPUT.list
    57         echo "$TMP/$PARSER.$INPUT.list"
     66        if [ ! -e "/tmp/tithek/$PARSER.$INPUT.list" ]; then
     67                tagcount=60
     68                i=1
     69                until [ "$i" -gt "$tagcount" ]
     70                do
     71                TITLE="Page $i"
     72                echo "$TITLE#$SRC $SRC page category '?p=$i&q=&sort=1'#http://atemio.dyndns.tv/mediathek/menu/page.jpg#page.jpg#$NAME#0" >> /tmp/tithek/$PARSER.$INPUT.list
     73                i=`expr $i + 1`
     74                done
     75        fi
     76        echo "/tmp/tithek/$PARSER.$INPUT.list"
    5877}
    5978
    60 list()
     79page()
    6180{
    6281        if [ ! -e "$TMP/$PARSER.$INPUT.$FROM.$FILENAME.list" ]; then
     
    6483
    6584#               $wgetbin $URL/$PAGE -O $TMP/cache.$PARSER.$FROM.$FILENAME.1
    66                 $curlbin "http://www.streamlive.to/?p=1&q=&sort=1" -o $TMP/cache.$PARSER.$FROM.$FILENAME.1
     85#               $curlbin "http://www.streamlive.to/?p=1&q=&sort=1" -o $TMP/cache.$PARSER.$FROM.$FILENAME.1
     86                $curlbin $URL/$PAGE -o $TMP/cache.$PARSER.$FROM.$FILENAME.1
    6787
    6888#               cat $TMP/cache.$PARSER.$FROM.$FILENAME.1 | tr '\n' '\r' |  tr '\r' ' ' | tr '\n' ' ' | tr '\t' ' ' | sed 's/ \+/ /g' | sed 's!<li class="has-sub">!\n<li class="has-sub">!g' | grep ^'<li class="has-sub">' | sed 's!href=!\n<a href=!g' | grep ^'<a href=' | grep "http://cricfree.sx" | grep -v "/watch/live/" | cut -d '"' -f2 >$TMP/cache.$PARSER.$FROM.$FILENAME.2
     
    106126        mainmenu) $INPUT;;
    107127        category) $INPUT;;
    108         list) $INPUT;;
     128        page) $INPUT;;
    109129esac
Note: See TracChangeset for help on using the changeset viewer.