masihyeganeh / YoutubeDownloader

Youtube video downloader (abandoned)
MIT License
123 stars 58 forks source link

ErrorException in YoutubeDownloader.php line 483: fopen(videos/Kavinsky_-_Protovision.mp4_temp_1478159094): failed to open stream: No such file or directory #10

Closed lukeyMing closed 7 years ago

lukeyMing commented 7 years ago

I have this in controller and when open in browser getting "ErrorException in YoutubeDownloader.php line 483: fopen(videos/Kavinsky_-_Protovision.mp4_temp_1478159094): failed to open stream: No such file or directory" error,

I'm using laravel 5.3

public function getInfo(){ $youtube = new YoutubeDownloader('41_svUt5_e0'); //$result = $youtube->getInfo(); $result=$youtube->download(18); //dump($result); }

lukeyMing commented 7 years ago

I find the reason, beacuse i do not create the directory of videos ..........................., so i add the code to create the directory path if don't exit. thanks

masihyeganeh commented 7 years ago

Thanks. I'll make it more clear in the README file