Changeset 41166 for titan


Ignore:
Timestamp:
11/14/17 17:00:52 (6 years ago)
Author:
obi
Message:

fix

File:
1 edited

Legend:

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

    r41165 r41166  
    584584#                               URL="`/tmp/localhoster/hoster.sh youtube_dl $URLTMP`"
    585585                                URL="gethoster2 $URLTMP"
     586
     587                                #errormsg
     588                                cat $TMP/cache.$PARSER.$INPUT.$FROM.$FILENAME.2 | tr '\n' ' ' | sed 's!<h1 id="unavailable-message" class="message">!\nERROR: !' | grep ^ERROR: | cut -d"." -f1 >$TMP/cache.$PARSER.$INPUT.$FROM.$FILENAME.3
     589                                ERROR=`cat $TMP/cache.$PARSER.$INPUT.$FROM.$FILENAME.3`
     590                                if [ "$URLTMP" == "https://www.youtube.com/watch/" ];then
     591                                        URL="$ERROR"
     592                                fi
    586593                        elif [ `echo $URLTMP | grep "openload.co" | wc -l` -eq 1 ];then
    587594                                if [ "$debug" = "1" ]; then echo $INPUT bbbbbb $URLTMP; fi
     
    618625#                               URL="`/tmp/localhoster/hoster.sh youtube_dl $URLTMP`"
    619626                                URL="gethoster2 $URLTMP"
     627
     628                                #errormsg
     629                                cat $TMP/cache.$PARSER.$INPUT.$FROM.$FILENAME.3 | tr '\n' ' ' | sed 's!<h1 id="unavailable-message" class="message">!\nERROR: !' | grep ^ERROR: | cut -d"." -f1 >$TMP/cache.$PARSER.$INPUT.$FROM.$FILENAME.5
     630                                ERROR=`cat $TMP/cache.$PARSER.$INPUT.$FROM.$FILENAME.5`
     631                                if [ "$URLTMP" == "https://www.youtube.com/watch/" ];then
     632                                        URL="$ERROR"
     633                                fi
    620634                        else
    621635                                if [ "$debug" = "1" ]; then echo $INPUT gggggg $URLTMP; fi
     
    630644
    631645                echo $URL
    632                 if [ "$debug" = "0" ]; then rm $TMP/cache.* > /dev/null 2>&1; fi
     646#               if [ "$debug" = "0" ]; then rm $TMP/cache.* > /dev/null 2>&1; fi
    633647        fi
    634648#       echo "$TMP/$PARSER.$INPUT.$FROM.$FILENAME.list"
Note: See TracChangeset for help on using the changeset viewer.