none of those youtube video downloader scripts working anymore.youtube has changed some of their code.as i heard,they are converting their site to ajax code
CatchTube V2- YouTube Video Searcher And Downloader
Collapse
X
-
i fixed 2 times today, sometime download works sometime not.Last edited by opticalpigion; 20.03.10, 13:43.
Comment
-
Download Link
FLV - http://www.okyoutube.com/watch?v=VIDEO ID
3GP - http://www.3.okyoutube.com/watch?v=VIDEO ID
MP4 - http://www.4.okyoutube.com/watch?v=VIDOE ID
now edit ur script.
Comment
-
it will use alot bandwidth because videos will get download from ur server.PHP Code:<?php if(isset($_GET['u'])){ $v = urldecode($_GET['u']); $f = explode("fmt=",$v); if($f[1] == 17){ // 3gp header("Content-Type: video/3gp"); header("Content-Disposition: attachment; filename=\"video.3gp\""); } elseif($f[1] == 18){ // mp4 header("Content-Type: video/mp4"); header("Content-Disposition: attachment; filename=\"video.mp4\""); } else{ // flv header("Content-Type: video/x-flv"); header("Content-Disposition: attachment; filename=\"video.flv\""); } readfile($v); flush(); exit(); }else{ $yu = 'http://www.youtube.com/watch?v=qGyfaoUAWtM'; if(isset($_GET["yu"])) $yu = $_GET["yu"]; $c = file_get_contents($yu); if(preg_match('/"video_id": "(.*?)"/', $c, $m) && preg_match('/"t": "(.*?)"/', $c, $m1)){ $id = $m[1]; $t = $m1[1]; $u = "http://www.youtube.com/get_video?video_id=".$id."&t=".$t; } ?> <html> <head> <title>YouTube Fixed - Coding-Talk.Com</title> </head> <body> <h1>Youtube Url:</h1> <form method="get" id="form" onSubmit="<?php echo $_SERVER['PHP_SELF']?>"> <input type="text" name="yu" id="yu" size="80" value="<?php echo $yu ?>"/> <input type="submit" name="b" id="b" value="Load" /> </form> <h1>Preview:</h1> <img src="http://img.youtube.com/vi/<?php echo $id?>/1.jpg" alt="Preview 1" /> <img src="http://img.youtube.com/vi/<?php echo $id?>/2.jpg" alt="Preview 2" /> <img src="http://img.youtube.com/vi/<?php echo $id?>/3.jpg" alt="Preview 3" /> <h1>Downloads:</h1> <a href="<?php echo $_SERVER['PHP_SELF'].'?u='.urlencode($u)?>">Download FLV</a><br /> <a href="<?php echo $_SERVER['PHP_SELF'].'?fmt=18&u='.urlencode($u."&fmt=18")?>">Download MP4</a><br /> <a href="<?php echo $_SERVER['PHP_SELF'].'?fmt=17&u='.urlencode($u."&fmt=17")?>">Download 3GP</a> </body> </html> <?php } ?>
Comment

Comment