View Single Post
Old 07-23-2011, 12:55 PM   PM User | #58
chump2877
Senior Coder

 
chump2877's Avatar
 
Join Date: Dec 2004
Location: the U.S. of freakin' A.
Posts: 2,530
Thanks: 15
Thanked 128 Times in 121 Posts
chump2877 is on a distinguished road
How experienced are you with PHP? With some knowledge of PHP programming, this shouldn't be that hard to troubleshoot...

The error you are receiving is due to the DownloadVideo() method failing:

PHP Code:
        function DownloadVideo($youTubeUrl
        { 
            
$file_contents file_get_contents($youTubeUrl); 
            if (
$file_contents !== false
            { 
                
$this->SetSongFileName($file_contents); 
                
$this->SetFlvUrl($file_contents); 
                if (
$this->GetSongFileName() != '' && $this->GetFlvUrl() != ''
                { 
                    return 
$this->SaveVideo($this->GetFlvUrl()); 
                } 
            } 
            return 
false
        } 
Whch means any of the following could be an issue here:

1) You have entered an invalid YouTube URL into the application
2) The regex used to obtain the FLV file name is not working
3) The regex used to extract the song name is not working

But before you start investigating those possibilities, you should do as I said earlier for your previous problem:

1) Turn error handling on in the code (comment out ini_set('display_errors',0)
2) Check your server error logs
__________________
Regards, R.J.

---------------------------------------------------------

Help spread the word! Like my YouTube-to-Mp3 Web Conversion Software on Facebook !! :)
chump2877 is offline   Reply With Quote