- Timestamp:
- 12/08/17 02:58:57 (5 years ago)
- Location:
- titan/mediathek
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
titan/mediathek/localhoster/hoster.sh
r41360 r41361 11 11 12 12 #FILENAME="`echo $SRC | tr '/' '\n' | tail -n1 | sed 's/.sh//'` $INPUT $PAGE $NEXT" 13 FILENAME="`echo $INPUT | sed -e 's/\ &\+/./g' -e 's#\/\+#.#g' -e 's/\?\+/./g' -e 's/:\+/./g' -e 's/;\+/./g' -e 's/=\+/./g' -e 's/ \+/./g' -e 's/\.\+/./g'`"13 FILENAME="`echo $INPUT | sed -e 's/\-\+/./g' | sed -e 's/\+\+/./g' | sed -e 's/\&\+/./g' -e 's#\/\+#.#g' -e 's/\?\+/./g' -e 's/:\+/./g' -e 's/;\+/./g' -e 's/=\+/./g' -e 's/ \+/./g' -e 's/\.\+/./g'`" 14 14 PICNAME=`echo $FILENAME` 15 15 … … 257 257 fi 258 258 259 #vodlocker260 #$curlbin "http://www.vodlocker.to/embed?t=Money+Monster&y=2016&lang=de&referrer=link"261 262 259 $curlbin "$INPUT" -o $TMP/cache.hoster.$hoster.1 263 264 cat $TMP/cache.hoster.$hoster.1 | grep play_container | sed -nr "s/.*href='([^']+)'.*/\1/p" >$TMP/cache.hoster.$hoster.2 265 TMPURL=`cat $TMP/cache.hoster.$hoster.2` 266 echo TMPURL $TMPURL 267 268 $curlbin "$TMPURL" -o $TMP/cache.hoster.$hoster.3 269 cat $TMP/cache.hoster.$hoster.3 | sed 's/<source src=/\nfound=/g' | grep ^found= | cut -d"'" -f2 >$TMP/cache.hoster.$hoster.url1 270 URL=`cat $TMP/cache.hoster.$hoster.url1` 260 cat $TMP/cache.hoster.$hoster.1 | sed 's/<source src=/\nfound=/g' | grep ^found= | cut -d"'" -f2 >$TMP/cache.hoster.$hoster.1.url1 261 URL=`cat $TMP/cache.hoster.$hoster.1.url1` 262 271 263 if [ ! -z "$URL" ];then 272 echo "$URL$EXTRA" >> $STREAMLIST 273 # echo "$URL" >> $STREAMLIST 264 echo "$URL" >> $STREAMLIST 274 265 fi 275 266 276 267 URL=$STREAMLIST 277 278 268 279 269 echo "$URL" -
titan/mediathek/localparser_secret/streamcloud.sh
r41360 r41361 24 24 25 25 FILENAME="$PARSER $INPUT $PAGE $NEXT $PAGE2" 26 FILENAME=`echo $FILENAME | tr '&' '.' | tr '/' '.' | tr '?' '.' | tr '=' '.' | sed 's/ \+/./g' | sed 's/\.\+/./g'`26 FILENAME=`echo $FILENAME | sed -e 's/\-\+/./g' | sed -e 's/\+\+/./g' | tr '&' '.' | tr '/' '.' | tr '?' '.' | tr '=' '.' | sed 's/ \+/./g' | sed 's/\.\+/./g'` 27 27 28 28 if [ -z "$FILENAME" ]; then … … 500 500 hosterlist() 501 501 { 502 if [ ! -e "$TMP/$FILENAME.list" ]; then 502 rm $TMP/$FILENAME.list 503 # if [ ! -e "$TMP/$FILENAME.list" ]; then 503 504 $curlbin "$PAGE" -o $TMP/cache.$FILENAME.1 504 505 cat $TMP/cache.$FILENAME.1 | grep iframe | sed -nr 's/.*src="([^"]+)".*/\1/p' >$TMP/cache.$FILENAME.2 … … 508 509 NEWPAGE="$ROUND" 509 510 TITLE=`echo $ROUND | sed -nr 's/.*:\/\/([^\/]+)\/.*/\1/p'` 511 #echo TITLE $TITLE 512 $curlbin "$NEWPAGE" -o $TMP/cache.$FILENAME.4 513 514 # <a class='play_container' href='http://www.vodlocker.to/embed?t=Die+Eisk%C3%B6nigin%3A+Olaf+taut+auf&y=2017&lang=de&referrer=link'> 515 cat $TMP/cache.$FILENAME.4 | grep play_container | sed -nr "s/.*href='([^']+)'.*/\1/p" >$TMP/cache.$FILENAME.4.url1 516 URL=`cat $TMP/cache.$FILENAME.4.url1` 517 if [ ! -z "$URL" ];then 518 TITLE=`echo $URL | sed -nr 's/.*:\/\/([^\/]+)\/.*/\1/p'` 519 NEWPAGE=$URL 520 fi 521 #echo URL2 $URL 522 #echo TITLE2 $TITLE 523 524 if [ ! -z "$URL" ];then 525 $curlbin "$URL" -o $TMP/cache.$FILENAME.5 526 527 # $("#hostname").html("<a href='http://openload.co/embed/vq1HFMJ5vAo/detroit.SD-spectre.mkv' target='_blank' style='color:gold; text-decoration:underline;'>openload.co</a>"); 528 cat $TMP/cache.$FILENAME.5 | grep "#hostname" | sed -nr "s/.*a href='([^']+)'.*/\1/p" | grep -v "+link+" >$TMP/cache.$FILENAME.5.url1 529 URL=`cat $TMP/cache.$FILENAME.5.url1` 530 if [ ! -z "$URL" ];then 531 TITLE=`echo $URL | sed -nr 's/.*:\/\/([^\/]+)\/.*/\1/p'` 532 fi 533 534 #echo URL3 $URL 535 #echo TITLE3 $TITLE 536 537 #if [ ! -z "$URL" ];then 538 # if [ -z "$URL" ];then 539 # 540 # cat $TMP/cache.$FILENAME.5 | sed 's/<source src=/\nfound=/g' | grep ^found= | cut -d"'" -f2 >$TMP/cache.$FILENAME.5.url2 541 # URL=`cat $TMP/cache.$FILENAME.5.url2` 542 # TITLE=`echo $URL | sed -nr 's/.*:\/\/([^\/]+)\/.*/\1/p'` 543 # fi 544 #echo URL4 $URL 545 #echo TITLE4 $TITLE 546 if [ ! -z "$URL" ];then 547 TITLE=`echo $URL | sed -nr 's/.*:\/\/([^\/]+)\/.*/\1/p'` 548 NEWPAGE=$URL 549 fi 550 #fi 551 552 #echo 111111111 553 # if [ -z "$URL" ];then 554 #echo 22222222222 555 # cat $TMP/cache.$FILENAME.4 | grep "#hostname" | sed -nr "s/.*a href='([^']+)'.*/\1/p" >$TMP/cache.$FILENAME.5.url3 556 # URL=`cat $TMP/cache.$FILENAME.5.url3` 557 558 # TITLE=`echo $URL | sed -nr 's/.*:\/\/([^\/]+)\/.*/\1/p'` 559 560 # if [ ! -z "$URL" ];then 561 # /tmp/localhoster/hoster.sh get "$URL" > $TMP/cache.hoster.$hoster.url3 562 # URL=`cat $TMP/cache.hoster.$hoster.url3` 563 # fi 564 # fi 565 fi 510 566 511 567 if [ ! -z "$TITLE" ] && [ "$TITLE" != " " ] && [ ! -z "$NEWPAGE" ];then 512 568 PIC=`echo $TITLE | tr [A-Z] [a-z] | sed 's/www.//' | cut -d"." -f1 | sed 's/streamclou/streamcloud/'` 513 LINE="$TITLE#$SRC $SRC hoster $NEWPAGE#http://atemio.dyndns.tv/mediathek/menu/$PIC.jpg#$PIC.jpg#$NAME#111"569 LINE="$TITLE#$SRC $SRC hoster '$NEWPAGE'#http://atemio.dyndns.tv/mediathek/menu/$PIC.jpg#$PIC.jpg#$NAME#111" 514 570 515 571 echo "$LINE" >> $TMP/$FILENAME.list … … 519 575 #echo $NEWPAGE 520 576 done 3<$TMP/cache.$FILENAME.2 521 rm $TMP/cache.$FILENAME.* > /dev/null 2>&1522 fi577 # rm $TMP/cache.$FILENAME.* > /dev/null 2>&1 578 # fi 523 579 echo "$TMP/$FILENAME.list" 524 580 } … … 529 585 rm $TMP/cache.$FILENAME.* > /dev/null 2>&1 530 586 # $curlbin $URL/$PAGE -o $TMP/cache.$PARSER.$INPUT.1 -A 'Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Maxthon/4.4.7.3000 Chrome/30.0.1599.101 Safari/537.36' 531 /tmp/localhoster/hoster.sh get $URL/$PAGE > $TMP/cache.$FILENAME.1 532 533 STREAMURL=`cat $TMP/cache.$FILENAME.1 | sed 's!<a target="_blank" href="!\nstreamurl="!' | grep ^streamurl= | cut -d'"' -f2` 534 535 if [ `echo $STREAMURL | grep ^http | wc -l` -eq 0 ]; then 536 # <iframe src="//www.rapidvideo.com/e/FIW59O2DED" width="730" height="460" frameborder="0" scrolling="no"></iframe><BR> <div id="underplayer"> 537 STREAMURL=`cat $TMP/cache.$FILENAME.1 | sed 's!<iframe src="!\nstreamurl="!' | grep ^streamurl= | cut -d'"' -f2 | tr ' ' '\n' | head -n1` 538 fi 539 540 # STREAMURL=`cat $TMP/cache.$PARSER.$INPUT.1 | sed 's!<a target="_blank" href="!\nstreamurl="!' | grep ^streamurl= | cut -d'"' -f2` 541 # rm $TMP/cache.$PARSER.$INPUT.* > /dev/null 2>&1 587 # /tmp/localhoster/hoster.sh get $URL/$PAGE > $TMP/cache.$FILENAME.1 588 589 590 # /tmp/localhoster/hoster.sh get "$PAGE" > $TMP/cache.$FILENAME.1 591 592 # STREAMURL=`cat $TMP/cache.$FILENAME.1` 593 STREAMURL="$PAGE" 542 594 echo $STREAMURL 543 595 } … … 550 602 hoster) $INPUT;; 551 603 search) $INPUT;; 552 553 554 604 searchtv) $INPUT;; 605 season) $INPUT;; 606 episode) $INPUT;; 555 607 kino) $INPUT;; 556 608 sorted) $INPUT;;
Note: See TracChangeset
for help on using the changeset viewer.