Yt-dlp not working in production specially inside the laravel queue. #236
Replies: 6 comments 18 replies
-
Hi, you could try to enable process debugging to see what's going on: $yt->debug(function ($type, $buffer) {
echo "$type: $buffer;"
}); |
Beta Was this translation helpful? Give feedback.
-
Okay @norkunas I'm trying this now and will get back to you asap |
Beta Was this translation helpful? Give feedback.
-
@norkunas It's not echo anything. Please help me |
Beta Was this translation helpful? Give feedback.
-
@norkunas When this job is run its immediately run in prod under 1 second. So I'm confused. |
Beta Was this translation helpful? Give feedback.
-
Yes. I tried with new youtube video @norkunas |
Beta Was this translation helpful? Give feedback.
-
@norkunas I have tried the above code. And got this error: But, yt-dlp file exists in the necessary directory |
Beta Was this translation helpful? Give feedback.
-
Hello everyone,
Here's the code inside a Laravel job, which downloads YouTube audio using yt-dlp. It works perfectly fine locally. In fact, when I run certain commands like $collection->getVideos() in the production server's tinker, it retrieves the audio file. works 100%.
However, when I execute the same working code inside the job, $collection is empty.
Beta Was this translation helpful? Give feedback.
All reactions