Changeset 42612 for titan


Ignore:
Timestamp:
08/03/18 19:29:58 (6 years ago)
Author:
obi
Message:

tithek optimize movie4 hoster

File:
1 edited

Legend:

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

    r42464 r42612  
    498498}
    499499
    500 hosterlist()
     500
     501hosterlistold()
    501502{
    502503        if [ ! -e "$TMP/$FILENAME.list" ]; then
     
    524525}
    525526
     527hosterlist()
     528{
     529        if [ ! -e "$TMP/$FILENAME.list" ]; then
     530                $curlbin -o - $URL/$PAGE | awk -v SRC=$SRC -v NAME=$NAME -v PICNAME=$PICNAME -v INPUT=$INPUT -v PAGE=$PAGE -v NEXT=$NEXT \
     531                '
     532                        # BEGIN variable setzen
     533                        BEGIN
     534                                {
     535                                        suche = 1
     536                                }
     537                                /^links\[/ \
     538                                {
     539                                        if ( suche == 1 )
     540                                        {
     541                                                # extrahiere den newpage pfad
     542                                                i = index($0, "href=\\\"") + 7
     543                                        j = index(substr($0, i), "\\") - 1
     544                                        newpage = substr($0, i, j)
     545
     546                                                # extrahiere den title pfad
     547                                                i = index($0, " ") + 6
     548                                        j = index(substr($0, i), "<") - 1
     549                                        title = substr($0, i, j)
     550
     551                                                i = index($0, "html\\\">") + 7
     552                                        j = index(substr($0, i), "<") - 1
     553                                        extra = substr($0, i, j)
     554
     555                                                if (title != "")
     556                                                {
     557                                                        pic = tolower(title)
     558                                                        split(pic, a, ".")
     559                                                        title = title " (" extra ")"
     560                                                        if ( pic == "" )
     561                                                        {
     562                                                                pic = "http://atemio.dyndns.tv/mediathek/menu/default.jpg"
     563                                                        }
     564                                                        else
     565                                                        {
     566                                                                pic = a[1]
     567                                                                if ( pic == "streamclou" )
     568                                                                        pic = pic "d"
     569                                                        }
     570                                                        piccount += 1
     571                                                        # 25. in naechste zeile springen
     572                                                        # 26. \x27 = single quotes
     573
     574                                                        print title "#" SRC " " SRC " hoster \x27" newpage "\x27#http://atemio.dyndns.tv/mediathek/menu/" pic ".jpg#" pic ".jpg#" NAME "#111"
     575                                                }
     576                                                next
     577                                        }
     578                                }
     579                                /<div class="cf"><\/div>/ \
     580                                {
     581                                        if ( suche == 1 )
     582                                        {
     583                                                suche = 0
     584                                        }
     585                                        next
     586                                }
     587
     588                # 29. schreibe alles in die list datei
     589                ' >$TMP/$FILENAME.list
     590        fi
     591        # 30. gebe titan den list namen mit pfad zurueck
     592        echo "$TMP/$FILENAME.list"
     593#       cat "$TMP/$FILENAME.list"
     594}
    526595
    527596hoster()
Note: See TracChangeset for help on using the changeset viewer.