Thread: Youtube Videos
View Single Post
Old 02-16-2008, 03:49 AM   #2 (permalink)
Wildhoney
La Vida es Sueño
Advanced Programmer Top Contributor 
 
Wildhoney's Avatar
 
Join Date: Sep 2007
Location: Oldham
Posts: 2,280
Thanks: 90
Wildhoney is on a distinguished road
Asterix

Of course ! I wrote a script once that did this. In fact, I decided to polish up that script seeing as how I haven't contributed much of anything to TalkPHP for a week or 2! Sorry guys. Hopefully this makes it all better.

The example is in the file, but here it is anyway to show you how easy I made it for you all:

php Code:
$pYouTube   -> setAddress('http://www.youtube.com/watch?v=ggShSZUBu5s')
            -> getVideo()
            -> asDownload();

It even gets the proper file name and appends FLV so it's not downloading get_video, as most do. Feel free to offer any suggestions/improvements!
Attached Files
File Type: php TalkPHP_YouTube.class.php (2.2 KB, 196 views)
__________________
The man who comes back through the Door in the Wall will never be quite the same as the man who went out.
Send a message via AIM to Wildhoney Send a message via MSN to Wildhoney Send a message via Yahoo to Wildhoney
Wildhoney is offline  
Reply With Quote
The Following 3 Users Say Thank You to Wildhoney For This Useful Post:
Andrew (02-16-2008), Haris (02-16-2008), owenj2o (02-16-2008)