-
Notifications
You must be signed in to change notification settings - Fork 474
Youtube VideoInfo script no longer working #421
Comments
Is anybody have idea how to fix this issue? |
Figured it out.
instead of
The |
If this truly works, could you make a pull request so we can merge the changes in? |
I've never done a pull request before, but I'll do my best :) |
Hello, the script stopped workig.. keeps saying "Error in video ID: HTTP is not supported. |
Created a PR, #422 |
@Emmanuelasika that was solved some time ago - you'll need to grab the latest code, not just the latest release - it's also not related to this thread |
I have update code on server. I updated code as you commented but i was getting below error - Fatal error: Uncaught Error: Call to undefined method YoutubeDownloader\Http\Response::getBodyAsString() in /Domain/app/youtube/src/Provider/Youtube/Provider.php:168 Stack trace: #0 So i have change your below code $video_info = VideoInfo::createFromStringWithOptions( $response->getBodyAsString(), $this->options, $input ); to $video_info = VideoInfo::createFromStringWithOptions( $response->getBody()->__toString(), $this->options, $input ); getBodyAsString() error gone but this error came back - Fatal error: Uncaught Error: Call to a member function getType() on null in /MYHOSTPATH/httpd.www/app/youtube/src/Application/ResultController.php:91 Stack trace: #0 |
dupe of #396 |
From Last month YouTube get VideoInfo no longer working. I have tested different video info code and curl no getting any information.
Error 01
No format stream map found - was the video id correct?
Error 02
Fatal error: Uncaught Error: Call to a member function getUrl() on null in /MYHOSTPATH/httpd.www/app/youtube/src/Application/ControllerAbstract.php:252 Stack trace: #0 /MYHOSTPATH/httpd.www/app/youtube/src/Application/ResultController.php(101): YoutubeDownloader\Application\ControllerAbstract->getDownloadUrlByFormat(Object(YoutubeDownloader\Provider\Youtube\VideoInfo), 'ipad') #1 /MYHOSTPATH/httpd.www/app/youtube/src/Application/App.php(83): YoutubeDownloader\Application\ResultController->execute() #2 /MYHOSTPATH/httpd.www/app/youtube/getvideo.php(23): YoutubeDownloader\Application\App->runWithRoute('results') #3 {main} thrown in /MYHOSTPATH/httpd.www/app/youtube/src/Application/ControllerAbstract.php on line 252
I have changed the server and it worked but after 2 days it stop again. If you think proxy can solve this issue then please check the below error -
Error 03
Fatal error: Uncaught Error: Call to a member function getType() on null in /MYHOSTPATH/httpd.www/app/youtube/src/Application/ResultController.php:91 Stack trace: #0 /MYHOSTPATH/httpd.www/app/youtube/src/Application/App.php(83): YoutubeDownloader\Application\ResultController->execute() #1 /MYHOSTPATH/httpd.www/app/youtube/getvideo.php(23): YoutubeDownloader\Application\App->runWithRoute('results') #2 {main} thrown in /MYHOSTPATH/httpd.www/app/youtube/src/Application/ResultController.php on line 91
Please let me know if you have any solution.
The text was updated successfully, but these errors were encountered: