Ignore:
Timestamp:
07/31/18 01:57:39 (3 years ago)
Author:
obi
Message:

fix

File:
1 edited

Legend:

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

    r42590 r42593  
    444444hosterlist3()
    445445{
    446         rm $TMP/cache.$FILENAME.* > /dev/null 2>&1
    447 rm "$TMP/$FILENAME.list"
     446#       rm $TMP/cache.$FILENAME.* > /dev/null 2>&1
     447#       rm "$TMP/$FILENAME.list"
    448448        if [ ! -e "$TMP/$FILENAME.list" ]; then
    449449                $curlbin "$PAGE" -o $TMP/cache.$FILENAME.1
     
    482482                        fi
    483483                done 3<$TMP/cache.$FILENAME.2
    484 #               rm $TMP/cache.$FILENAME.* > /dev/null 2>&1
     484                rm $TMP/cache.$FILENAME.* > /dev/null 2>&1
    485485        fi
    486486        echo "$TMP/$FILENAME.list"
     
    508508                tags=""
    509509                i=1
    510                 until [ "$i" -gt "$MAXEPISODE" ]
    511                 do
    512                 TMPURL=`echo $TMPURL | sed -e "s/&season=.*//" -e "s/&episode=.*//" -e "s/&referrer=.*//"`
    513                 for ROUND in $FOUNDEPISODE; do
    514                         if [ "$ROUND" == "$i" ];then
    515                                 echo "Season $season Episode $i#$SRC $SRC hosterlist3 '$TMPURL&season=$season&episode=$i&referrer=$referrer&server=$server' 1#http://atemio.dyndns.tv/mediathek/menu/s"$season"e"$i".jpg#s"$season"e"$i".jpg#$NAME#0" | sort -r >> $TMP/$FILENAME.list
    516                         fi
    517                 done
    518                 i=`expr $i + 1`
    519                 done
     510                if [ ! -z "$i" ] && [ ! -z "$MAXEPISODE" ];then
     511                        until [ "$i" -gt "$MAXEPISODE" ]
     512                        do
     513                        TMPURL=`echo $TMPURL | sed -e "s/&season=.*//" -e "s/&episode=.*//" -e "s/&referrer=.*//"`
     514                        for ROUND in $FOUNDEPISODE; do
     515                                if [ "$ROUND" == "$i" ];then
     516                                        echo "Season $season Episode $i#$SRC $SRC hosterlist3 '$TMPURL&season=$season&episode=$i&referrer=$referrer&server=$server' 1#http://atemio.dyndns.tv/mediathek/menu/s"$season"e"$i".jpg#s"$season"e"$i".jpg#$NAME#0" | sort -r >> $TMP/$FILENAME.list
     517                                fi
     518                        done
     519                        i=`expr $i + 1`
     520                        done
     521                fi
    520522                rm $TMP/cache.$FILENAME.* > /dev/null 2>&1
    521523        fi
Note: See TracChangeset for help on using the changeset viewer.