Changeset 37152


Ignore:
Timestamp:
Feb 15, 2016, 1:46:01 AM (5 years ago)
Author:
obi
Message:

optimize localhoster

Location:
titan
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • titan/mediathek/localparser_free/giga.sh

    r36524 r37152  
    1111NAME=Giga
    1212
     13debuglevel=`cat /mnt/config/titan.cfg | grep debuglevel | cut -d"=" -f2`
     14curlbin='curl -k -s -L --cookie /mnt/network/cookies --cookie-jar /mnt/network/cookies'
     15if [ "$debuglevel" == "99" ]; then curlbin="$curlbin -v"; fi
     16
    1317wgetbin="wget -q -T2"
    14 TMP=/tmp/parser
     18TMP=/tmp/localcache
    1519
    1620rm -rf $TMP > /dev/null 2>&1
  • titan/mediathek/localparser_secret/beeg.sh

    r36977 r37152  
    88PARSER=`echo $SRC | tr '/' '\n' | tail -n1 | sed 's/.sh//'`
    99NAME=`echo -n ${PARSER:0:1} | tr '[a-z]' '[A-Z]'`${PARSER:1}
    10 curlbin="curl -k -s"
    11 TMP=/tmp/parser
     10
     11debuglevel=`cat /mnt/config/titan.cfg | grep debuglevel | cut -d"=" -f2`
     12curlbin='curl -k -s -L --cookie /mnt/network/cookies --cookie-jar /mnt/network/cookies'
     13if [ "$debuglevel" == "99" ]; then curlbin="$curlbin -v"; fi
     14
     15wgetbin="wget -q -T2"
     16TMP=/tmp/localcache
    1217
    1318rm -rf $TMP > /dev/null 2>&1
  • titan/mediathek/localparser_secret/bs.sh

    r36980 r37152  
    1010PARSER=`echo $SRC | tr '/' '\n' | tail -n1 | sed 's/.sh//'`
    1111NAME="burningseries"
     12
     13debuglevel=`cat /mnt/config/titan.cfg | grep debuglevel | cut -d"=" -f2`
     14curlbin='curl -k -s -L --cookie /mnt/network/cookies --cookie-jar /mnt/network/cookies'
     15if [ "$debuglevel" == "99" ]; then curlbin="$curlbin -v"; fi
     16
    1217wgetbin="wget -q -T2"
    13 TMP=/tmp/parser
     18TMP=/tmp/localcache
    1419
    1520rm -rf $TMP > /dev/null 2>&1
  • titan/mediathek/localparser_secret/cricfree.sh

    r37136 r37152  
    1616NAME=CricFree
    1717
    18 curlbin='curl -k -s -v -L --cookie /mnt/network/cookies --cookie-jar /mnt/network/cookies'
    19 #useragent="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"
     18debuglevel=`cat /mnt/config/titan.cfg | grep debuglevel | cut -d"=" -f2`
     19curlbin='curl -k -s -L --cookie /mnt/network/cookies --cookie-jar /mnt/network/cookies'
     20if [ "$debuglevel" == "99" ]; then curlbin="$curlbin -v"; fi
    2021
    2122wgetbin="wget -q -T2"
    22 TMP=/tmp/parser
    23 #TMP=/mnt/parser/tmp
    24 #TMP=/var/usr/local/share/titan/plugins/tithek/parser/tmp
     23TMP=/tmp/localcache
    2524
    2625#rm -rf $TMP > /dev/null 2>&1
  • titan/mediathek/localparser_secret/nbaondemand.sh

    r37136 r37152  
    1616NAME=NBA-On-Demand
    1717
    18 curlbin='curl -k -s -v -L --cookie /mnt/network/cookies --cookie-jar /mnt/network/cookies'
    19 #useragent="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"
     18debuglevel=`cat /mnt/config/titan.cfg | grep debuglevel | cut -d"=" -f2`
     19curlbin='curl -k -s -L --cookie /mnt/network/cookies --cookie-jar /mnt/network/cookies'
     20if [ "$debuglevel" == "99" ]; then curlbin="$curlbin -v"; fi
    2021
    2122wgetbin="wget -q -T2"
    22 TMP=/tmp/parser
    23 #TMP=/mnt/parser/tmp
    24 #TMP=/var/usr/local/share/titan/plugins/tithek/parser/tmp
     23TMP=/tmp/localcache
    2524
    2625#rm -rf $TMP > /dev/null 2>&1
  • titan/mediathek/localparser_secret/streamlive.sh

    r37136 r37152  
    2020NAME=StreamLive
    2121
    22 curlbin='curl -k -s -v -L --cookie /mnt/network/cookies --cookie-jar /mnt/network/cookies'
    23 #useragent="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"
     22debuglevel=`cat /mnt/config/titan.cfg | grep debuglevel | cut -d"=" -f2`
     23curlbin='curl -k -s -L --cookie /mnt/network/cookies --cookie-jar /mnt/network/cookies'
     24if [ "$debuglevel" == "99" ]; then curlbin="$curlbin -v"; fi
    2425
    2526wgetbin="wget -q -T2"
    26 TMP=/tmp/parser
    27 #TMP=/mnt/parser/tmp
    28 #TMP=/var/usr/local/share/titan/plugins/tithek/parser/tmp
     27TMP=/tmp/localcache
    2928
    30 #rm -rf $TMP > /dev/null 2>&1
    3129mkdir $TMP > /dev/null 2>&1
    3230
     
    5654}
    5755
    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 
    6456category()
    6557{
     
    8274                piccount=0
    8375
    84 #               $wgetbin $URL/$PAGE -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
    8676                $curlbin $URL/$PAGE -o $TMP/cache.$PARSER.$FROM.$FILENAME.1
    8777
    88 #               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
    8978                cat $TMP/cache.$PARSER.$FROM.$FILENAME.1 | tr '\n' '\r' |  tr '\r' ' ' | tr '\n' ' ' | tr '\t' ' ' | sed 's/ \+/ /g' | sed 's!<a href="http://www.streamlive.to/view/!\nhttp://www.streamlive.to/view/!g' | grep ^"http://www.streamlive.to/view/" | grep -v "<strong>" | grep -v "premium_only" >$TMP/cache.$PARSER.$FROM.$FILENAME.2
    9079
  • titan/plugins/tithek/tithek_global.h

    r37150 r37152  
    634634                path = ostrcat("/tmp/localparser", NULL, 0, 0);
    635635
    636                 if(!file_exist("/tmp/hoster"))
    637                         mkdir("/tmp/hoster", 0777);
     636                if(!file_exist("/tmp/localhoster"))
     637                        mkdir("/tmp/localhoster", 0777);
    638638                if(!file_exist("/mnt/parser"))
    639639                        mkdir("/mnt/parser", 0777);
     
    659659                unlink("/tmp/hoster.tar");
    660660                gethttp("atemio.dyndns.tv", "/mediathek/hoster.tar", 80, "/tmp/hoster.tar", HTTPAUTH, 5000, NULL, 0);
    661                 cmd = ostrcat("tar -xvf /tmp/hoster.tar -C ", "/tmp/hoster", 0, 0);
     661                cmd = ostrcat("tar -xvf /tmp/hoster.tar -C ", "/tmp/localhoster", 0, 0);
    662662                system(cmd);
    663663                free(cmd), cmd = NULL;
     
    667667                free(cmd), cmd = NULL;
    668668
    669                 cmd = ostrcat("chmod -R 755 /tmp/hoster", NULL, 0, 0);
     669                cmd = ostrcat("chmod -R 755 /tmp/localhoster", NULL, 0, 0);
    670670                system(cmd);
    671671                free(cmd), cmd = NULL;
Note: See TracChangeset for help on using the changeset viewer.