is it having access to ffmpeg?

This commit is contained in:
GiovaniFZ 2024-10-19 12:49:56 -03:00
parent fbacb44386
commit ef258e0c15
No known key found for this signature in database
GPG Key ID: 63DD92181B575322

View File

@ -86,7 +86,9 @@ module.exports = (bot) => {
},
);
const dlpArgs = [videoUrl, videoFormat, ...cmdArgs.split(' '), mp4File];
const ffmpegArgs = '&& which ffmpeg';
const dlpArgs = [videoUrl, videoFormat, ...cmdArgs.split(' '), mp4File, ffmpegArgs];
await downloadFromYoutube(dlpCommand, dlpArgs);
await ctx.telegram.editMessageText(
@ -99,6 +101,8 @@ module.exports = (bot) => {
},
);
if(fs.existsSync)
if (fs.existsSync(mp4File)) {
const message = strings.ytUploadDesc
.replace("{userId}", userId)