Ignore:
Timestamp:
Jan 8, 2020, 10:17:14 PM (10 months ago)
Author:
obi
Message:

optimize tithek start

File:
1 edited

Legend:

Unmodified
Added
Removed
  • titan/mediathek/localparser_secret/7tv.sh

    r43639 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
     
    149PARSER=`echo $SRC | tr '/' '\n' | tail -n1 | sed 's/.sh//'`
    1510NAME=7tv
    16 FILENAME="$PARSER $INPUT $PAGE"
    17 FILENAME=`echo $FILENAME | tr '&' '.' | tr '/' '.' | tr '?' '.'  | tr '=' '.' | sed 's/ \+/./g' | sed 's/\.\+/./g'`
    1811
    19 #rm -rf $TMP > /dev/null 2>&1
    20 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
     22
    2123
    2224if [ `echo $SRC | grep ^"/mnt/parser" | wc -l` -gt 0 ];then
Note: See TracChangeset for help on using the changeset viewer.