Athlon1600 / youtube-downloader

:tv: PHP based alternative to youtube-dl and yt-dlp. Active and frequently updated! :star:
https://unblockvideos.com/
MIT License
805 stars 316 forks source link

problem running test server with Composer #146

Closed hampelman closed 3 years ago

hampelman commented 3 years ago

Hi there. Installing the Youtube-downloader script with Composer and running it locally, like described give me the following error.

127.0.0.1:43000 [500]: GET /video_info.php?url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Daqz-KE-bpKQ - require(): Failed opening required '../vendor/autoload.php' (include_path='.:/usr/share/php') in /home/fabs/athlon/vendor/athlon1600/youtube-downloader/public/video_info.php on line 3

Am I doing something stupid here?

hampelman commented 3 years ago

The sollution is as easy as pie: change the path to autoload.php in both public/stream.php and _public/videoinfo.php to require('../../../../vendor/autoload.php');