Ver Mensaje Individual
  #1 (permalink)  
Antiguo 21/11/2007, 11:27
Avatar de el_tigre
el_tigre
 
Fecha de Ingreso: febrero-2006
Ubicación: Perú
Mensajes: 1.044
Antigüedad: 19 años, 2 meses
Puntos: 8
De acuerdo Código de Descarga

Amigos, tengo este código de Grabber para descargar desde youtube, ifilm, dailymotion, y blip,

Código PHP:
<?php
/*************************************
/////////////////////////////////////////////////////////////////////////////////////
// WebVideo Grabber                                                                       //
// From: http://dn.vc                                                                          //
// Selling or Producing of this script code is not allowed without our        //
permission                                                                                        //
// DO NOT REMOVE THIS NOTICE                                                       //
/////////////////////////////////////////////////////////////////////////////////////
**************************************/
if (isset($_GET{'url'})){
    
$url=$_GET{'url'};
    
$url=trim($url);

    if (
strstr($_GET['url'],"youtube.com")){
        
$data = @file_get_contents($_GET['url']);
        @
preg_match('#/watch_fullscreen\?video_id=([a-z0-9-_]+)&l=([0-9]+)&t=([a-z0-9-_]+)#i'$data$matches);
        if (
ereg($matches[1], $_GET['url'])) {
            
Header("Location: http://www.youtube.com/get_video?video_id=$matches[1]&l=$matches[2]&t=$matches[3]");
        } 
    }
        
    
    if (
strstr($_GET['url'],"ifilm.com")){
        
$file=@file($url);
        
$count=count($file);
    
        
$flag=0;
        for (
$i=0;$i<$count;$i++){
            if (
strstr($file[$i],"so.addVariable") and strstr($file[$i],"getStream")){
                    
$main=$file[$i]; $flag=1; break;
            }
        }

    if (
$flag==1){
        
$parse=explode("http://",$main);
        
$parse1=explode("?e=",$parse[1]);

        
$ifilm="http://".$parse1[0]."?e=";
        
Header("Location:$ifilm");
        }
        if (
$flag==0){
            
Header("Location: http://ifilm-840.vo.llnwd.net/o/contentstore/getStream/2826840_300.flv?e=");
        }
    }

    

    if (
strstr($_GET['url'],"dailymotion.com")){
        
$file=@file($url);
        
$count=count($file);

        
$flag=0;
        for (
$i=0;$i<$count;$i++){
            if (
strstr($file[$i],"addVariable") and strstr($file[$i],".flv") and strstr($file[$i],'"url"')){
                
$main=$file[$i]; $flag=1; break;
            }
        }
    if (
$flag==1){
        
$parse=explode("http%3A%2F%2F",$main);
        
$parse1=explode('");',$parse[1]);
        
$parse1[0]=str_replace("%2F","/",$parse1[0]);
        
$parse1[0]=str_replace("%3F","?",$parse1[0]);
        
$parse1[0]=str_replace("%3D","=",$parse1[0]);

        
$dailymotion="http://".$parse1[0];
        
Header("Location: $dailymotion");
        }
        if (
$flag==0){
            
Header("Location: http://www.dailymotion.com/get/14/320x240/flv/2197705.flv?key=467179fa53996b0c93b92c2bba62724612a2e36");
        }
    }

    if (
strstr($_GET['url'],"blip.tv")){
        
$file=@file($url);
        
$count=count($file);

        for (
$i=0;$i<$count;$i++){
            if (
strstr($file[$i],"setPrimaryMediaUrl")){
                
$main=$file[$i]; break;
            }
        }

        
$parse=explode('setPrimaryMediaUrl("',$main);
        
$parse1=explode('?source=',$parse[1]);

        
$blip=$parse1[0];
        
Header("Location: $blip");
    }

    if (
strstr($_GET['url'],"break.com")){
        
$file=@file($url);
        
$count=count($file);

        
$main="";
        for (
$i=0;$i<$count;$i++){
            
$main=$main.$file[$i];
        }

        
$parse=explode("sGlobalFileName='",$main);
        
$parse1=explode("'",$parse[1]);

        
$name=$parse1[0];


        
$parse2=explode("sGlobalContentFilePath='",$main);
        
$parse3=explode("'",$parse2[1]);

        
$fp=$parse3[0];
        
$break="http://media1.break.com/dnet/media/".$fp."/".$name.".flv";
        
Header("Location: $break");

    }
}

?>
Quisiera por favor que me ayuden con el código, para descargar desde esta página http://www.godtube.com/ (es una similar al youtube pero sólo es para cristianos)