is it having access to ffmpeg?
This commit is contained in:
parent
fbacb44386
commit
ef258e0c15
1 changed files with 5 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue