Changeset 41361 for titan


Ignore:
Timestamp:
12/08/17 02:58:57 (5 years ago)
Author:
obi
Message:

update streamcloud.me

Location:
titan/mediathek
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • titan/mediathek/localhoster/hoster.sh

    r41360 r41361  
    1111
    1212#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'`"
     13FILENAME="`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'`"
    1414PICNAME=`echo $FILENAME`
    1515
     
    257257        fi
    258258
    259 #vodlocker
    260 #$curlbin "http://www.vodlocker.to/embed?t=Money+Monster&y=2016&lang=de&referrer=link"
    261 
    262259        $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
    271263        if [ ! -z "$URL" ];then
    272                 echo "$URL$EXTRA" >> $STREAMLIST
    273 #               echo "$URL" >> $STREAMLIST
     264                echo "$URL" >> $STREAMLIST
    274265        fi
    275266
    276267        URL=$STREAMLIST
    277 
    278268
    279269        echo "$URL"
  • titan/mediathek/localparser_secret/streamcloud.sh

    r41360 r41361  
    2424
    2525FILENAME="$PARSER $INPUT $PAGE $NEXT $PAGE2"
    26 FILENAME=`echo $FILENAME | tr '&' '.' | tr '/' '.' | tr '?' '.'  | tr '=' '.' | sed 's/ \+/./g' | sed 's/\.\+/./g'`
     26FILENAME=`echo $FILENAME  | sed -e 's/\-\+/./g' | sed -e 's/\+\+/./g' | tr '&' '.' | tr '/' '.' | tr '?' '.'  | tr '=' '.' | sed 's/ \+/./g' | sed 's/\.\+/./g'`
    2727
    2828if [ -z "$FILENAME" ]; then
     
    500500hosterlist()
    501501{
    502         if [ ! -e "$TMP/$FILENAME.list" ]; then
     502rm $TMP/$FILENAME.list
     503#       if [ ! -e "$TMP/$FILENAME.list" ]; then
    503504                $curlbin "$PAGE" -o $TMP/cache.$FILENAME.1
    504505                cat $TMP/cache.$FILENAME.1 | grep iframe | sed -nr 's/.*src="([^"]+)".*/\1/p' >$TMP/cache.$FILENAME.2
     
    508509                        NEWPAGE="$ROUND"
    509510                        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
     524if [ ! -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
     565fi
    510566
    511567                        if [ ! -z "$TITLE" ] && [ "$TITLE" != " " ] && [ ! -z "$NEWPAGE" ];then
    512568                                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"
    514570
    515571                                echo "$LINE" >> $TMP/$FILENAME.list
     
    519575#echo $NEWPAGE
    520576                done 3<$TMP/cache.$FILENAME.2
    521                 rm $TMP/cache.$FILENAME.* > /dev/null 2>&1
    522         fi
     577#               rm $TMP/cache.$FILENAME.* > /dev/null 2>&1
     578#       fi
    523579        echo "$TMP/$FILENAME.list"
    524580}
     
    529585        rm $TMP/cache.$FILENAME.* > /dev/null 2>&1
    530586#       $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"
    542594        echo $STREAMURL
    543595}
     
    550602        hoster) $INPUT;;
    551603        search) $INPUT;;
    552         searchtv) $INPUT;;
    553         season) $INPUT;;
    554         episode) $INPUT;;
     604        searchtv) $INPUT;;
     605        season) $INPUT;;
     606        episode) $INPUT;;
    555607        kino) $INPUT;;
    556608        sorted) $INPUT;;
Note: See TracChangeset for help on using the changeset viewer.