PHP Classes

Uncaught Error

Recommend this page to a friend!

      PHP YouTube Video Downloader  >  All threads  >  Uncaught Error  >  (Un) Subscribe thread alerts  
Subject:Uncaught Error
Summary:status not being checked
Messages:5
Author:Dave Smith
Date:2015-04-20 02:20:30
 

  1. Uncaught Error   Reply   Report abuse  
Picture of Dave Smith Dave Smith - 2015-04-20 02:20:31
video id: KK67kaMWN-8

youtube returned video info $arr =

array (size=8)
'eventid' => string 'f100VbP0Is3oqQXetIHYCg' (length=22)
'reason' => string 'This video contains content from Jukin Media. It is restricted from playback on certain sites.<br/><u><a href='http://www.youtube.com/watch?v=KK67kaMWN-8&feature=player_embedded' target='_blank'>Watch on YouTube</a></u>' (length=219)
'errorcode' => string '150' (length=3)
'csi_page_type' => string 'embed' (length=5)
'errordetail' => string '0' (length=1)
'c' => string 'WEB' (length=3)
'status' => string 'fail' (length=4)
'enablecsi' => string '1' (length=1)

Script fails with undefined index 'title' on line 42 of main class.

Note the returned status = fail, should check the status before processing returned video info.

  2. Re: Uncaught Error   Reply   Report abuse  
Picture of Nitesh Apte Nitesh Apte - 2015-04-20 07:54:21 - In reply to message 1 from Dave Smith
Thanks Dave for pointing that out. I will fix it tonight and will let you know.

  3. Re: Uncaught Error   Reply   Report abuse  
Picture of Nitesh Apte Nitesh Apte - 2015-04-20 23:25:42 - In reply to message 1 from Dave Smith
Hi Dave,

It's added. Would you mind giving it a try?

Thanks

  4. Re: Uncaught Error   Reply   Report abuse  
Picture of Dave Smith Dave Smith - 2015-04-21 00:11:58 - In reply to message 3 from Nitesh Apte
Worked just fine. Caught the error and displayed alternate link for viewing.

Also d/l one that was available using a local wampserver and curl, it worked, no problems.

Dave

  5. function.file-get-contents: failed...   Reply   Report abuse  
Picture of Omisore Olatunji Omisore Olatunji - 2015-04-22 19:58:35 - In reply to message 1 from Dave Smith
Hi, I got this error while trying the same video: KK67kaMWN-8
file_get_contents("http://youtube.com/get_video_info?video_id=KK67kaMWN-8") # line 65. file: C:\wamp\www\CLASS\youtube downloader\class.YouTubeVideoDownloader.php YouTubeVideoDownloader.getVideoInfo("http://youtube.com/get_video_info?video_id=KK67kaMWN-8","KK67kaMWN-8") # line 39. file: C:\wamp\www\CLASS\youtube downloader\class.YouTubeVideoDownloader.php YouTubeVideoDownloader.createDownloadLink("http://youtube.com/get_video_info?video_id=KK67kaMWN-8","KK67kaMWN-8","KK67kaMWN-8","22") # line 28. file: C:\wamp\www\CLASS\youtube downloader\class.YouTubeVideoDownloader.php YouTubeVideoDownloader.startDownload("http://youtube.com/get_video_info?video_id=KK67kaMWN-8","KK67kaMWN-8","KK67kaMWN-8","22",Object: YouTubeBean) # line 32. file: C:\wamp\www\CLASS\youtube downloader\example.php