conf: set ffmpeg location
This commit is contained in:
parent
ef258e0c15
commit
45e7d67c93
1 changed files with 2 additions and 3 deletions
|
@ -86,9 +86,8 @@ module.exports = (bot) => {
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
|
||||||
const ffmpegArgs = '&& which ffmpeg';
|
const ffmpegLocation = '--ffmpeg-location /usr/bin/ffmpeg'
|
||||||
|
const dlpArgs = [ffmpegLocation, videoUrl, videoFormat, ...cmdArgs.split(' '), mp4File];
|
||||||
const dlpArgs = [videoUrl, videoFormat, ...cmdArgs.split(' '), mp4File, ffmpegArgs];
|
|
||||||
await downloadFromYoutube(dlpCommand, dlpArgs);
|
await downloadFromYoutube(dlpCommand, dlpArgs);
|
||||||
|
|
||||||
await ctx.telegram.editMessageText(
|
await ctx.telegram.editMessageText(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue