Useless, but…

Somebody wanted this.

function ripper($url) {
$page = appr_curl_function($url);
if ($page === false)
{
die(”Something wack happened”);
}
preg_match(’/watch_fullscreen\?video_id=(.*?)&l=(.*?)+&t=(.*?)&/’, $page, $match);
$match1 = “http://www.youtube.com/get_video?video_id=”;
if(!$match[1]){
die(”Some Informative Error Messgae Here”);
}
$match1 .= $match[1];
$match1 .= “&t=”;
$match1 .= $match[3];
return $match1;
}

Should work. Write yourself necessary things in the appr_curl_function()

Leave a Reply