Changeset 42882


Ignore:
Timestamp:
10/07/18 23:07:16 (5 years ago)
Author:
obi
Message:

tithek fix serienstream title/pic

File:
1 edited

Legend:

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

    r42610 r42882  
    275275{
    276276        if [ ! -e "$TMP/$FILENAME.list" ]; then
    277                 $curlbin -o - $URL/$PAGE | sed 's/<div/\n<div/g' | awk -v SRC=$SRC -v NAME=$NAME -v PICNAME=$PICNAME -v INPUT=$INPUT -v URL=$URL -v PAGE=$PAGE -v NEXT=$NEXT \
     277                $curlbin -o - $URL/$PAGE | tr -d '\n' | sed 's/<div/\n<div/g' | awk -v SRC=$SRC -v NAME=$NAME -v PICNAME=$PICNAME -v INPUT=$INPUT -v URL=$URL -v PAGE=$PAGE -v NEXT=$NEXT \
    278278                '
    279279                        # BEGIN variable setzen
     
    304304                                        newpage = substr($0, i, j)
    305305
    306                                                 # extrahiere den title pfad
    307                                                 i = index($0, "title=\"") + 7
    308                                         j = index(substr($0, i), "\"") - 1
     306                                        # extrahiere den title pfad
     307                                        i = index($0, "title=\"") + 7
     308#                                       j = index(substr($0, i), "\"") - 1
     309                                        j = index(substr($0, i), "stream online") - 2
    309310                                        title = substr($0, i, j)
    310311
    311312
    312                                                 # extrahiere den title pfad
    313                                                 i = index($0, "<h3>") + 4
    314                                         j = index(substr($0, i), "<") - 1
    315                                         title = substr($0, i, j)
    316 
    317 
    318                                                 i = index($0, "img src=\"") + 9
     313#                                       # extrahiere den title pfad
     314#                                       i = index($0, "<h3>") + 4
     315#                                       j = index(substr($0, i), "<") - 1
     316#                                       title = substr($0, i, j)
     317
     318
     319#                                       i = index($0, "img src=\"") + 9
     320                                        i = index($0, "src=\"") + 5
    319321                                        j = index(substr($0, i), "\"") - 1
    320322                                        pic = substr($0, i, j)
    321323
    322                                                 if (title != "")
     324                                        if (title != "")
     325                                        {
     326                                                if ( pic == "" )
    323327                                                {
    324                                                         if ( pic == "" )
    325                                                         {
    326                                                                 pic = "http://atemio.dyndns.tv/mediathek/menu/default.jpg"
    327                                                         }
    328 
    329                                                         piccount += 1
    330                                                         # 25. in naechste zeile springen
    331                                                         # 26. \x27 = single quotes
    332                                                         print title "#" SRC " " SRC " season \x27" newpage "\x27#" URL pic "#" PICNAME "." piccount ".jpg#" NAME "#0"
     328                                                        pic = "http://atemio.dyndns.tv/mediathek/menu/default.jpg"
    333329                                                }
     330
     331                                                piccount += 1
     332                                                # 25. in naechste zeile springen
     333                                                # 26. \x27 = single quotes
     334                                                print title "#" SRC " " SRC " season \x27" newpage "\x27#" URL pic "#" PICNAME "." piccount ".jpg#" NAME "#0"
     335                                        }
    334336#                                               next
    335337                                        }
Note: See TracChangeset for help on using the changeset viewer.