Ignore:
Timestamp:
04/15/17 03:05:19 (6 years ago)
Author:
obi
Message:

cleanup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • titan/mediathek/localparser_free/clipfish.sh

    r40299 r40300  
    4949category()
    5050{
    51 #       if [ ! -e "$TMP/$FILENAME.list" ]; then
     51        if [ ! -e "$TMP/$FILENAME.list" ]; then
    5252                $curlbin -o - $URL$PAGE | sed -e 's!</html>\[{"id"!</html>\[{"id"\nfound={"id"!g' -e 's/}],/\nfound=/g' | awk -v SRC=$SRC -v NAME=$NAME -v PICNAME=$PICNAME -v INPUT=$INPUT -v PAGE=$PAGE -v NEXT=$NEXT \
    5353                '
     
    9797                # schreibe alles in die list datei
    9898                ' >$TMP/$FILENAME.list
    99 #       fi
     99        fi
    100100        # gebe titan den list namen mit pfad zurueck
    101101        echo "$TMP/$FILENAME.list"
     
    104104submenu()
    105105{
    106 #       if [ ! -e "$TMP/$FILENAME.list" ]; then
    107 #       $curlbin -o - $URL$PAGE | sed -e 's!</html>\[{"id"!</html>\[{"id"\nfound1={"id"!g' -e 's/}],/\nfound1=/g' | grep \"id\":\"$NEXT\" | sed -e 's/:\[{/\nfound=}/g' -e 's/},{/\nfound=},{/g' | grep found= > /tmp/localparser/777
    108         echo URL $URL
    109         echo PAGE $PAGE
    110 
    111         echo NEXT $NEXT
    112         echo PAGE2 $PAGE2
     106        if [ ! -e "$TMP/$FILENAME.list" ]; then
    113107                $curlbin -o - $URL$PAGE | sed -e 's!</html>\[{"id"!</html>\[{"id"\nfound1={"id"!g' -e 's/}],/\nfound1=/g' | grep \"id\":\"$NEXT\" | sed -e 's/:\[{/\nfound=}/g' -e 's/},{/\nfound=},{/g' | grep found= | awk -v SRC=$SRC -v NAME=$NAME -v PICNAME=$PICNAME -v INPUT=$INPUT -v PAGE=$PAGE -v NEXT=$NEXT \
    114108                '
     
    177171                # schreibe alles in die list datei
    178172                ' >$TMP/$FILENAME.list
    179 #       fi
     173        fi
    180174        # gebe titan den list namen mit pfad zurueck
    181175        echo "$TMP/$FILENAME.list"
     
    184178search()
    185179{
    186 #       if [ ! -e "$TMP/$FILENAME.list" ]; then
    187 #$curlbin -o - $URL/$PAGE > /tmp/localparser/888
    188 #$curlbin -o - $URL$PAGE > /tmp/localparser/888
    189 
     180        if [ ! -e "$TMP/$FILENAME.list" ]; then
    190181                $curlbin -o - $URL$PAGE$NEXT$PAGE2 | sed 's/{"video_id":/\n{"video_id":/g' | awk -v SRC=$SRC -v NAME=$NAME -v PICNAME=$PICNAME -v INPUT=$INPUT -v PAGE=$PAGE -v NEXT=$NEXT \
    191182                '
     
    199190                        /"video_id"/ \
    200191                        {
    201 #                       print "1111111" $0
    202192                                i = index($0, "\"title\":\"") + 9
    203193                    j = index(substr($0, i), "\",\"") - 1
    204194                                title = substr($0, i, j)
    205 #                       print "title: " title
    206 
    207195
    208196                                i = index($0, "\"media_length\":\"") + 16
    209197                    j = index(substr($0, i), "\",\"") - 1
    210198                                duration = substr($0, i, j)
    211 #                       print "duration: " duration
    212 
    213199
    214200                                i = index($0, "\"pubDate\":\"") + 11
    215201                    j = index(substr($0, i), "\",\"") - 1
    216202                                extra = substr($0, i, j)
    217 #                       print "extra: " extra
    218203
    219204                                i = index($0, "\"video_url_edge_quality\":\"") + 26
     
    235220                                gsub(/\\/, "", newpage, newpage)
    236221
    237 #                       print "newpage: " newpage
    238 
    239222                                i = index($0, "\"media_content_thumbnail_large\":\"") + 33
    240223                    j = index(substr($0, i), "\"") - 1
    241224                                pic = substr($0, i, j)
    242225                                gsub(/\\/, "", pic, pic)
    243 #                       print "pic: " pic
    244226
    245227                                piccount += 1
     
    248230                        pic = "http://atemio.dyndns.tv/mediathek/menu/default.jpg"
    249231                                }
    250 #                               print title " (" extra ")#" SRC " " SRC " hoster \x27" newpage "\x27#" pic "#" PICNAME "." piccount ".jpg#" NAME "#111"
    251232                                print title " (" duration "s) (" extra ")#" newpage "#" pic "#" PICNAME "." piccount ".jpg#" NAME "#2"
    252233
     
    256237                        {
    257238#                               if (curpage != pages)
    258 #                                       print "Page (" NEXT + 1 "/" pages ")#" SRC " " SRC " " INPUT " \x27" PAGE "\x27 " NEXT + 1 "#http://atemio.dyndns.tv/mediathek/menu/next.jpg#next.jpg#" NAME "#0"
    259239                                        print "Page (" NEXT + 1 "/" pages ")#" SRC " " SRC " " INPUT " \x27" PAGE "\x27 " NEXT + 1 " \x27/16\x27#http://atemio.dyndns.tv/mediathek/menu/next.jpg#next.jpg#" NAME "#0"
    260240
     
    263243                # schreibe alles in die list datei
    264244                ' >$TMP/$FILENAME.list
    265 #       fi
     245        fi
    266246        # gebe titan den list namen mit pfad zurueck
    267247        echo "$TMP/$FILENAME.list"
Note: See TracChangeset for help on using the changeset viewer.