Changeset 42882
- Timestamp:
- 10/07/18 23:07:16 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
titan/mediathek/localparser_secret/serienstream.sh
r42610 r42882 275 275 { 276 276 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 \ 278 278 ' 279 279 # BEGIN variable setzen … … 304 304 newpage = substr($0, i, j) 305 305 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 309 310 title = substr($0, i, j) 310 311 311 312 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 319 321 j = index(substr($0, i), "\"") - 1 320 322 pic = substr($0, i, j) 321 323 322 if (title != "") 324 if (title != "") 325 { 326 if ( pic == "" ) 323 327 { 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" 333 329 } 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 } 334 336 # next 335 337 }
Note: See TracChangeset
for help on using the changeset viewer.