Changeset 42027


Ignore:
Timestamp:
03/31/18 19:49:16 (5 years ago)
Author:
obi
Message:

fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • titan/mediathek/localhoster/hoster.sh

    r42024 r42027  
    210210{
    211211        mkdir $TMP > /dev/null 2>&1
     212        rm -f $TMP/cache.hoster.$hoster.1 > /dev/null 2>&1
    212213        $BIN $CMD/cloudflare.py $INPUT > $TMP/cache.hoster.$hoster.1 2>&1
    213214        if [ `cat $TMP/cache.hoster.$hoster.1 | grep "urllib2.HTTPError" | wc -l` -eq 1 ];then
    214215                ERROR=`cat $TMP/cache.hoster.$hoster.1 | grep urllib2.HTTPError:`
    215                 echo "errormsg: $ERROR"
     216                echo "errormsg=$ERROR"
    216217        else
    217218                cat $TMP/cache.hoster.$hoster.1
     
    222223{
    223224        mkdir $TMP > /dev/null 2>&1
     225        rm -f $TMP/cache.hoster.$hoster.1 > /dev/null 2>&1
    224226
    225227        if [ "$TYPE" == "get" ];then
     
    227229                if [ `cat $TMP/cache.hoster.$hoster.1 | grep "urllib2.HTTPError" | wc -l` -eq 1 ];then
    228230                        ERROR=`echo $INPUT | grep urllib2.HTTPError:`
    229                         echo "errormsg: $ERROR"
     231                        echo "errormsg=$ERROR"
    230232                else
    231233                        cat $TMP/cache.hoster.$hoster.1
     
    240242                        if [ `echo $URL | grep "urllib2.HTTPError" | wc -l` -eq 1 ];then
    241243                                ERROR=`echo $INPUT | grep urllib2.HTTPError:`
    242                                 echo "errormsg: $ERROR"
     244                                echo "errormsg=$ERROR"
    243245                        else
    244246                                if [ `echo $URL | grep ^"//" | wc -l` -eq 1 ];then
Note: See TracChangeset for help on using the changeset viewer.