mirror of
https://github.com/abocn/TelegramBot.git
synced 2025-03-10 12:49:57 +00:00
conf: set ffmpeg location
This commit is contained in:
parent
ef258e0c15
commit
45e7d67c93
@ -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…
x
Reference in New Issue
Block a user