jeckman / YouTube-Downloader

PHP script for downloading videos from youtube; also parsing youtube feed into RSS enclosures for podcatchers
GNU General Public License v2.0
894 stars 473 forks source link

this script is unable to download some of the youtube videos #440

Open papputest opened 4 years ago

papputest commented 4 years ago

Description

actually this script is working very well but unable to download some of youtube videos

Steps to Reproduce

Please include the direct url to the YouTube video.

  1. i copied this url "https://www.youtube.com/watch?v=eTpu5CF2VZg" in search box
  2. then click the start downlod button
  3. and then the following errors appears:

Expected behavior: It should do without errors

Actual behavior:There the following message appears:

Notice: Undefined index: url in xampp\htdocs\YouTube-Downloader-master\src\Provider\Youtube\VideoInfo.php on line 308

Fatal error: Uncaught Exception in xampp\htdocs\YouTube-Downloader-master\src\Http\CurlClient.php:203 Stack trace: #0 xampp\htdocs\YouTube-Downloader-master\src\Http\CurlClient.php(113): YoutubeDownloader\Http\CurlClient->getHttpResponseFromCurl(Resource id #52, Array) #1 xampp\htdocs\YouTube-Downloader-master\src\Http\CurlClient.php(76): YoutubeDownloader\Http\CurlClient->sendRequest(Object(YoutubeDownloader\Http\Request)) #2 xampp\htdocs\YouTube-Downloader-master\src\Application\ControllerAbstract.php(105): YoutubeDownloader\Http\CurlClient->send(Object(YoutubeDownloader\Http\Request), Array) #3 xampp\htdocs\YouTube-Downloader-master\src\Application\ResultController.php(174): YoutubeDownloader\Application\ControllerAbstract->getSize('', Object(YoutubeDownloader\Config), Object(YoutubeDownloader\Toolkit)) #4 xampp\htdocs\YouTube-Downloader-master\src\Application\App.php(83): YoutubeDownloader\Application\ResultController->execute() #5 xampp\htdocs\YouTube-Downloader-master\getvideo.php(23): YoutubeDo in xampp\htdocs\YouTube-Downloader-master\src\Http\CurlClient.php on line 206

Version

Youtube Downloader 0.11-dev

Additional Information

i am running this code on windows , and the server i am using is xampp

aziel07165 commented 4 years ago

The same thing happens to me, I think they are using the old youtube api.