conf: set ffmpeg location

This commit is contained in:
GiovaniFZ 2024-10-19 13:00:22 -03:00
parent ef258e0c15
commit 45e7d67c93
No known key found for this signature in database
GPG Key ID: 63DD92181B575322

View File

@ -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(