Ignore:
Timestamp:
Aug 1, 2018, 4:59:31 PM (13 months ago)
Author:
obi
Message:

update vodlocker

File:
1 edited

Legend:

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

    r42599 r42600  
    306306        fi
    307307
    308 PAGE=`echo $INPUT | cut -d"|" -f1`
    309 REFERER=`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
    349 
    350         if [ ! -z "$URL" ];then
    351 #               echo "$URL"
    352                 echo "$URL" | tr -d '\n' | tr -d '\r' >> $STREAMLIST
    353 #               echo "$URL|User-Agent=$USERAGENT" >> $STREAMLIST
    354 #               echo "$URL|$REFERER" | tr -d '\n' >> $STREAMLIST
    355 
    356                 sed 's/#HttpOnly_//g' -i /mnt/network/cookies
    357                 sed 's/.movie2k.ag/.movie4k.ag/g' -i /mnt/network/cookies
    358 
    359         fi
     308        PAGE=`echo $INPUT | cut -d"|" -f1`
     309        REFERER=`echo $INPUT | cut -d"|" -f2`
     310
     311        $curlbin "$PAGE" -o $TMP/cache.$FILENAME.1
     312        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
     313
     314        while read -u 3 ROUND; do
     315                NEWPAGE="$ROUND"
     316
     317                $curlbin2 -v "$NEWPAGE" --dump-header $TMP/cache.hoster.$hoster.1
     318                cat $TMP/cache.hoster.$hoster.1 | grep ^Location: | cut -d" " -f2 >$TMP/cache.hoster.$hoster.1.url1
     319                URL=`cat $TMP/cache.hoster.$hoster.1.url1`"|$REFERER"
     320
     321                CURTIME=`date +%s`
     322                if [ `cat /mnt/network/cookies | grep .movie4k.ag | grep approve | wc -l` -eq 0 ];then
     323                        echo ".movie4k.ag     TRUE    /       FALSE   $CURTIME      approve         1" >> /mnt/network/cookies
     324                fi
     325
     326                if [ ! -z "$URL" ];then
     327                        echo "$URL" | tr -d '\n' | tr -d '\r' >> $STREAMLIST
     328                        echo "" >> $STREAMLIST
     329
     330                        sed 's/#HttpOnly_//g' -i /mnt/network/cookies
     331                        sed 's/.movie2k.ag/.movie4k.ag/g' -i /mnt/network/cookies
     332                fi
     333
     334
     335        done 3<$TMP/cache.$FILENAME.2
     336        rm $TMP/cache.$FILENAME.* > /dev/null 2>&1
    360337
    361338        URL=$STREAMLIST
    362339
    363340        echo "$URL"
    364 #exit
    365341}
    366342
Note: See TracChangeset for help on using the changeset viewer.