Ignore:
Timestamp:
01/08/20 22:17:14 (2 years ago)
Author:
obi
Message:

optimize tithek start

File:
1 edited

Legend:

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

    r42464 r44502  
    11#!/bin/sh
    22# first sh box parser for titannit mfg obi
    3 
    4 case $2 in
    5         init) echo skip load hoster.sh;;
    6         *) . /tmp/localhoster/hoster.sh;;
    7 esac
    83
    94SRC=$1
     
    116PAGE=$3
    127
    13 FILENAME=`echo $PAGE | tr '/' '.'`
    14 FILENAME=`echo $FILENAME | tr '&' '.'`
    15 
    16 if [ -z "$PAGE" ]; then
    17         FILENAME=none
    18 fi
    19 
    208URL=http://goldesel.to
    219PARSER=`echo $SRC | tr '/' '\n' | tail -n1 | sed 's/.sh//'`
    2210NAME=Goldesel
    2311
    24 mkdir $TMP > /dev/null 2>&1
     12case $2 in
     13        init) echo skip load hoster.sh;;
     14        *)      . /tmp/localhoster/hoster.sh
     15                mkdir $TMP > /dev/null 2>&1
     16                FILENAME="$PARSER $INPUT $PAGE"
     17                FILENAME=$(echo $FILENAME | tr '&' '.' | tr '/' '.' | tr '?' '.' | tr '=' '.' | sed -e 's/\&\+/./g' -e 's#\/\+#.#g' -e 's/\?\+/./g' -e 's/;\+/./g' -e 's/=\+/./g' -e 's/ \+/./g' -e 's/\.\+/./g')
     18                if [ -z "$FILENAME" ]; then FILENAME=none;fi
     19                PICNAME="$FILENAME"
     20                ;;
     21esac
    2522
    2623if [ `echo $SRC | grep ^"/mnt/parser" | wc -l` -gt 0 ];then
Note: See TracChangeset for help on using the changeset viewer.