Changeset 42027
- Timestamp:
- 03/31/18 19:49:16 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
titan/mediathek/localhoster/hoster.sh
r42024 r42027 210 210 { 211 211 mkdir $TMP > /dev/null 2>&1 212 rm -f $TMP/cache.hoster.$hoster.1 > /dev/null 2>&1 212 213 $BIN $CMD/cloudflare.py $INPUT > $TMP/cache.hoster.$hoster.1 2>&1 213 214 if [ `cat $TMP/cache.hoster.$hoster.1 | grep "urllib2.HTTPError" | wc -l` -eq 1 ];then 214 215 ERROR=`cat $TMP/cache.hoster.$hoster.1 | grep urllib2.HTTPError:` 215 echo "errormsg :$ERROR"216 echo "errormsg=$ERROR" 216 217 else 217 218 cat $TMP/cache.hoster.$hoster.1 … … 222 223 { 223 224 mkdir $TMP > /dev/null 2>&1 225 rm -f $TMP/cache.hoster.$hoster.1 > /dev/null 2>&1 224 226 225 227 if [ "$TYPE" == "get" ];then … … 227 229 if [ `cat $TMP/cache.hoster.$hoster.1 | grep "urllib2.HTTPError" | wc -l` -eq 1 ];then 228 230 ERROR=`echo $INPUT | grep urllib2.HTTPError:` 229 echo "errormsg :$ERROR"231 echo "errormsg=$ERROR" 230 232 else 231 233 cat $TMP/cache.hoster.$hoster.1 … … 240 242 if [ `echo $URL | grep "urllib2.HTTPError" | wc -l` -eq 1 ];then 241 243 ERROR=`echo $INPUT | grep urllib2.HTTPError:` 242 echo "errormsg :$ERROR"244 echo "errormsg=$ERROR" 243 245 else 244 246 if [ `echo $URL | grep ^"//" | wc -l` -eq 1 ];then
Note: See TracChangeset
for help on using the changeset viewer.