Changeset 42599 for titan/mediathek


Ignore:
Timestamp:
Aug 1, 2018, 5:31:11 AM (16 months ago)
Author:
obi
Message:

fix movie2k vodlocker

Location:
titan/mediathek
Files:
2 edited

Legend:

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

    r42590 r42599  
    1111
    1212#FILENAME="`echo $SRC | tr '/' '\n' | tail -n1 | sed 's/.sh//'` $INPUT $PAGE $NEXT"
    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'`"
     13FILENAME="`echo $INPUT | sed 's/User-Agent.*//' | sed -e 's/|//g' | 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
     
    306306        fi
    307307
    308         $curlbin2 -v "$INPUT" -o $TMP/cache.hoster.$hoster.1
    309         cat $TMP/cache.hoster.$hoster.1 | sed 's/<source src=/\nfound=/g' | grep ^found= | cut -d"'" -f2 >$TMP/cache.hoster.$hoster.1.url1
    310         URL=`cat $TMP/cache.hoster.$hoster.1.url1`
     308PAGE=`echo $INPUT | cut -d"|" -f1`
     309REFERER=`echo $INPUT | cut -d"|" -f2`
     310
     311#       $curlbin2 -v "$INPUT"
     312#       $curlbin2 -v "$INPUT" --dump-header $TMP/cache.hoster.$hoster.1
     313        $curlbin2 -v "$PAGE" --dump-header $TMP/cache.hoster.$hoster.1
     314
     315#       cat $TMP/cache.hoster.$hoster.1 | sed 's/<source src=/\nfound=/g' | grep ^found= | cut -d"'" -f2 >$TMP/cache.hoster.$hoster.1.url1
     316#HTTP/1.1 302 Found
     317#Date: Wed, 01 Aug 2018 02:25:19 GMT
     318#Content-Type: text/html; charset=UTF-8
     319#Transfer-Encoding: chunked
     320#Connection: keep-alive
     321#Set-Cookie: __cfduid=da0e5ea5088141733d5977427e20fc9f41533090319; expires=Thu, 01-Aug-19 02:25:19 GMT; path=/; domain=.vodlocker.to; HttpOnly
     322#Location: http://cdn.movie4k.ag/files/tvepisodes/360p/1473892-e1.mp4
     323#Server: cloudflare
     324#CF-RAY: 4434da7e67c42d53-TXL   
     325        cat $TMP/cache.hoster.$hoster.1 | grep ^Location: | cut -d" " -f2 >$TMP/cache.hoster.$hoster.1.url1
     326        URL=`cat $TMP/cache.hoster.$hoster.1.url1`"|$REFERER"
     327#echo URL $URL
     328#exit
     329
     330#ffplay -debug 1 "http://www.vodlocker.to/embed/getfile?id=1473783&res=720p&cat=episode&e=9" -user-agent "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/67.0.3396.99 Chrome/67.0.3396.99 Safari/537.36" -headers "Referer: http://www.vodlocker.to/embed?id=1473783&t=Homeland+-+Staffel+1&season=1&referrer=link&server=1&episode=12
     331#Accept: image/webp,image/apng,image/*,*/*;q=0.8" -cookies "__cfduid=d4eb57b56d3ccfb0beb2fec264c6dba601532854297; path=/; domain=.vodlocker.to;
     332#_ga=GA1.2.1681698761.1532854306; path=/; domain=.vodlocker.to;
     333#adcashufpv3=12824464407038797681725356984; path=/; domain=.vodlocker.to;
     334#_gid=GA1.2.1896952283.1533084668; path=/; domain=.vodlocker.to;
     335#_gat=1; path=/; domain=.vodlocker.to;
     336#__cfduid=ddd1364dc6f44ff84cdc490a29f48a3de1533084405; path=/; domain=.movie2k.ag;"
     337
     338
     339#ffplay -debug 1 "http://cdn.movie4k.ag/files/tvepisodes/720p/1473783-e9.mp4" -user-agent "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/67.0.3396.99 Chrome/67.0.3396.99 Safari/537.36" -headers "Referer: http://www.vodlocker.to/embed?id=1473783&t=Homeland+-+Staffel+1&season=1&referrer=link&server=1&episode=12" -headers "Referer: http://www.vodlocker.to/embed/getfile?id=1473783&res=720p&cat=episode&e=9" -cookies "__cfduid=d6b754c619bd66eaabb925ce4e2e999411532854306; path=/; domain=.movie4k.ag;
     340#_ga=GA1.2.1298647097.1532878963; path=/; domain=.movie4k.ag;
     341#approve=1; path=/; domain=.movie4k.ag;"
     342
     343#ffplay -debug 1 "http://cdn.movie4k.ag/files/tvepisodes/720p/1473783-e9.mp4" -user-agent "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/67.0.3396.99 Chrome/67.0.3396.99 Safari/537.36" -headers "Referer: http://www.vodlocker.to/embed?id=1473783&t=Homeland+-+Staffel+1&season=1&referrer=link&server=1&episode=12" -headers "Referer: http://www.vodlocker.to/embed/getfile?id=1473783&res=720p&cat=episode&e=9" -cookies "approve=1; path=/; domain=.movie4k.ag;"
     344
     345        CURTIME=`date +%s`
     346        if [ `cat /mnt/network/cookies | grep .movie4k.ag | grep approve | wc -l` -eq 0 ];then
     347                echo ".movie4k.ag     TRUE    /       FALSE   $CURTIME      approve         1" >> /mnt/network/cookies
     348        fi
    311349
    312350        if [ ! -z "$URL" ];then
    313 #               echo "$URL" >> $STREAMLIST
    314 
    315                 REFERER=`echo "$INPUT" | sed -e 's/=/%3D/g' -e 's/&/%26/g'`
    316                 echo "$URL|User-Agent=$USERAGENT&Referer=$REFERER" >> $STREAMLIST
     351#               echo "$URL"
     352                echo "$URL" | tr -d '\n' | tr -d '\r' >> $STREAMLIST
    317353#               echo "$URL|User-Agent=$USERAGENT" >> $STREAMLIST
     354#               echo "$URL|$REFERER" | tr -d '\n' >> $STREAMLIST
    318355
    319356                sed 's/#HttpOnly_//g' -i /mnt/network/cookies
     357                sed 's/.movie2k.ag/.movie4k.ag/g' -i /mnt/network/cookies
    320358
    321359        fi
     
    324362
    325363        echo "$URL"
     364#exit
    326365}
    327366
  • titan/mediathek/localparser_secret/movie2kag.sh

    r42593 r42599  
    442442}
    443443
    444 hosterlist3()
    445 {
    446 #       rm $TMP/cache.$FILENAME.* > /dev/null 2>&1
    447 #       rm "$TMP/$FILENAME.list"
    448         if [ ! -e "$TMP/$FILENAME.list" ]; then
    449                 $curlbin "$PAGE" -o $TMP/cache.$FILENAME.1
    450                 cat $TMP/cache.$FILENAME.1 | sed 's/<source src/\n<source src/g' | sed -nr "s/.*src='([^']+)'.*/\1/p" | grep getfile >$TMP/cache.$FILENAME.2
    451 #echo $TMP/cache.$FILENAME.1
    452 
    453 
    454 #<source src='http://www.vodlocker.to/embed/getfile?id=1473892&res=720p&cat=episode&e=1' type='video/mp4' data-res='720'>
    455 #<source src='http://www.vodlocker.to/embed/getfile?id=1473892&res=480p&cat=episode&e=1' type='video/mp4' data-res='480'>
    456 #<source src='http://www.vodlocker.to/embed/getfile?id=1473892&res=360p&cat=episode&e=1' type='video/mp4' data-res='360'>                </video>
    457 
    458 
    459 #exit
    460                 while read -u 3 ROUND; do
    461                         NEWPAGE="$ROUND"
    462                         TITLE=`echo $ROUND | sed -nr 's/.*:\/\/([^\/]+)\/.*/\1/p'`
    463                         EXTRA=`echo $ROUND | sed -nr "s/.*res=([^=]+)&.*/\1/p"`
    464                         PIC=`echo $TITLE | tr [A-Z] [a-z] | sed 's/www.//' | cut -d"." -f1 | sed 's/streamclou/streamcloud/'`
    465 
    466                         if [ ! -z "$TITLE" ] && [ ! -z "$EXTRA" ];then
    467                                 TITLE="$TITLE ($EXTRA)"
    468                         fi
    469 
    470 #                       $curlbin2 -v --referer "$PAGE" "$NEWPAGE" -o $TMP/cache.$FILENAME.3
    471 #                       REFERER=`echo "$INPUT" | sed -e 's/=/%3D/g' -e 's/&/%26/g'`
    472 
    473 #echo TITLE $TITLE
    474 #echo EXTRA $EXTRA
    475 #echo NEWPAGE $NEWPAGE
    476 
    477 #echo $TMP/cache.$FILENAME.3
    478 #exit
    479                         if [ ! -z "$TITLE" ] && [ ! -z "$NEWPAGE" ];then
    480                                 LINE="$TITLE#$SRC $SRC hoster '$NEWPAGE'#http://atemio.dyndns.tv/mediathek/menu/$PIC.jpg#$PIC.jpg#$NAME#111"
    481                                 echo "$LINE" >> $TMP/$FILENAME.list
    482                         fi
    483                 done 3<$TMP/cache.$FILENAME.2
    484                 rm $TMP/cache.$FILENAME.* > /dev/null 2>&1
    485         fi
    486         echo "$TMP/$FILENAME.list"
    487 }
    488 
    489444episode()
    490445{
     
    520475                        done
    521476                fi
     477                rm $TMP/cache.$FILENAME.* > /dev/null 2>&1
     478        fi
     479        echo "$TMP/$FILENAME.list"
     480}
     481
     482
     483hosterlist3()
     484{
     485#       rm $TMP/cache.$FILENAME.* > /dev/null 2>&1
     486#       rm "$TMP/$FILENAME.list"
     487        if [ ! -e "$TMP/$FILENAME.list" ]; then
     488                $curlbin "$PAGE" -o $TMP/cache.$FILENAME.1
     489                cat $TMP/cache.$FILENAME.1 | sed 's/<source src/\n<source src/g' | sed -nr "s/.*src='([^']+)'.*/\1/p" | grep getfile >$TMP/cache.$FILENAME.2
     490#echo $TMP/cache.$FILENAME.1
     491
     492
     493#<source src='http://www.vodlocker.to/embed/getfile?id=1473892&res=720p&cat=episode&e=1' type='video/mp4' data-res='720'>
     494#<source src='http://www.vodlocker.to/embed/getfile?id=1473892&res=480p&cat=episode&e=1' type='video/mp4' data-res='480'>
     495#<source src='http://www.vodlocker.to/embed/getfile?id=1473892&res=360p&cat=episode&e=1' type='video/mp4' data-res='360'>                </video>
     496
     497
     498#exit
     499                while read -u 3 ROUND; do
     500                        NEWPAGE="$ROUND"
     501                        TITLE=`echo $ROUND | sed -nr 's/.*:\/\/([^\/]+)\/.*/\1/p'`
     502                        EXTRA=`echo $ROUND | sed -nr "s/.*res=([^=]+)&.*/\1/p"`
     503                        PIC=`echo $TITLE | tr [A-Z] [a-z] | sed 's/www.//' | cut -d"." -f1 | sed 's/streamclou/streamcloud/'`
     504
     505                        if [ ! -z "$TITLE" ] && [ ! -z "$EXTRA" ];then
     506                                TITLE="$TITLE ($EXTRA)"
     507                        fi
     508
     509#                       $curlbin2 -v --referer "$PAGE" "$NEWPAGE" -o $TMP/cache.$FILENAME.3
     510#                       REFERER=`echo "$INPUT" | sed -e 's/=/%3D/g' -e 's/&/%26/g'`
     511
     512#echo TITLE $TITLE
     513#echo EXTRA $EXTRA
     514#echo NEWPAGE $NEWPAGE
     515
     516#echo $TMP/cache.$FILENAME.3
     517#exit
     518                        if [ ! -z "$TITLE" ] && [ ! -z "$NEWPAGE" ];then
     519                                REFERER=`echo "$PAGE" | sed -e 's/=/%3D/g' -e 's/&/%26/g'`
     520                                LINE="$TITLE#$SRC $SRC hoster '$NEWPAGE|User-Agent=$USERAGENT&Referer=$REFERER'#http://atemio.dyndns.tv/mediathek/menu/$PIC.jpg#$PIC.jpg#$NAME#111"
     521                                echo "$LINE" >> $TMP/$FILENAME.list
     522                        fi
     523                done 3<$TMP/cache.$FILENAME.2
    522524                rm $TMP/cache.$FILENAME.* > /dev/null 2>&1
    523525        fi
Note: See TracChangeset for help on using the changeset viewer.