bilmiyorum konu bu mu ama bende şöyle bir kod var hala çalışıyor
<?php
ob_start();
$videoid=$_GET["v"];
$format = $_GET["fmt"];
if(empty($format)) $format = 18;
$content= file_get_contents("http://youtube.com/get_video_info?video_id=$videoid");
parse_str($content);
$url = "http://www.youtube.com/get_video.php?video_id=" . $videoid . "&t=" . $token. "&fmt=".$format;
$headers = get_headers($url);
foreach($headers as $h){
if(strpos($h,"googlevideo.com")!=false){
$url = substr($h,10);
break;
}
}
header("Location: $url");
ob_end_flush();
?>