CatchTube V2- YouTube Video Searcher And Downloader

Started on the old forum in July 2009 · view the original in the archive · old links redirect here

76 replies · 19,077 views · started 17 years ago · 1 min read

TL;DR · summary of 76 replies
  • - The issue of removing the search secure for adult videos category was not resolved as no specific code changes were provided.
  • - The bug related to duplicate recent search entries could not be fixed due to inconsistent reports and lack of detailed information on how to reproduce or fix it.
  • - The server configuration error regarding file access was suggested to be fixed by changing the $_SERVER['DOCUMENT_ROOT'] value in ctubefooter.php, but no specific code changes were provided.
  • - Adding an embedded player for streaming videos in a PC-only context and making related video sections more accurate based on content rather than title is still unresolved as no specific code or approach was offered.

Written automatically from the replies by a language model on our own server. It can be wrong; the posts below are the source.

32 participants
opticalpigion Lead · 593 posts #41

bjayz wrote: hi can u pls back up ur script yah using now in ur demo and zipped it then attached it here again,, thats sure it has no errors and bugs! pls...

in current demo i have make 1-2 changes. i'll share script after adding more features. and into this attached file there is no any error. all you need is php curl enable. and mysql3+

MaaV Newbie · 9 posts #42

simple script .. but priceless ... thanks so much for this ..

MaaV Newbie · 9 posts #43

it seems like youtube has updated their code,

downloading is not possible anymore

any updates?

thanks in advance.

heykooldude Junior · 32 posts #44

Yes Youtube has updated its code.So the script needs update too.

Suhail Newbie · 8 posts #49

Yeah Opti, plz share it with us....

morency Senior · 488 posts #52

I think will work ok if u play with header() and file_get_contents() ...:-? L.E. : YES, is working 🙂

Unamos los corazones,hoy todos somos multicolores!

pretend Developer · 107 posts #53

none of the page is working except the index.php i know theres a way to make it but dont know how if you could give me ahint i could make it when i click on cateogeries example animal or news .php i am getting a white page

Nice Effects

morency Senior · 488 posts #54

the ip who make request must be the same with the ip who download.... you can use readfile() ... work for me

Unamos los corazones,hoy todos somos multicolores!

GumSlone Administrator Principal · 1,690 posts #55

morency wrote: the ip who make request must be the same with the ip who download.... you can use readfile() ... work for me

this will eat many server ressources if there are many download requests at the same time.

Advertise your mobile site for FREE with AdTwirl

External image (may be gone)

morency Senior · 488 posts #57

yes...I know , I know....but for me is ok....:)

Unamos los corazones,hoy todos somos multicolores!

opticalpigion Lead · 593 posts #58
<?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 
}
?>

it will use alot bandwidth because videos will get download from ur server.

TheNik Newbie · 8 posts #59

Ur Code IS Working Thank U vERY mUCH.

monsp3 Developer · 57 posts #60

@catchtube how did you do the notification message when someone tries to leech in your details.php from some other sites? can you pm it to me or share it here?

Write your reply now; next you create a free account (or sign in) and it is posted right away. Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close