From 45e7d67c9369cee26ce2f3cb78d6c365f974b6eb Mon Sep 17 00:00:00 2001 From: GiovaniFZ Date: Sat, 19 Oct 2024 13:00:22 -0300 Subject: [PATCH] conf: set ffmpeg location --- commands/youtube.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/commands/youtube.js b/commands/youtube.js index a31a9dd..635dbb8 100644 --- a/commands/youtube.js +++ b/commands/youtube.js @@ -86,9 +86,8 @@ module.exports = (bot) => { }, ); - const ffmpegArgs = '&& which ffmpeg'; - - const dlpArgs = [videoUrl, videoFormat, ...cmdArgs.split(' '), mp4File, ffmpegArgs]; + const ffmpegLocation = '--ffmpeg-location /usr/bin/ffmpeg' + const dlpArgs = [ffmpegLocation, videoUrl, videoFormat, ...cmdArgs.split(' '), mp4File]; await downloadFromYoutube(dlpCommand, dlpArgs); await ctx.telegram.editMessageText(