conf: try one more thing for yt

This commit is contained in:
GiovaniFZ 2024-10-19 13:37:31 -03:00
parent 45e7d67c93
commit 605a2487b3
3 changed files with 30 additions and 2 deletions

View File

@ -86,8 +86,7 @@ module.exports = (bot) => {
},
);
const ffmpegLocation = '--ffmpeg-location /usr/bin/ffmpeg'
const dlpArgs = [ffmpegLocation, videoUrl, videoFormat, ...cmdArgs.split(' '), mp4File];
const dlpArgs = [videoUrl, videoFormat, ...cmdArgs.split(' '), mp4File];
await downloadFromYoutube(dlpCommand, dlpArgs);
await ctx.telegram.editMessageText(

27
package-lock.json generated
View File

@ -13,6 +13,8 @@
"child_process": "^1.0.2",
"commander": "^12.1.0",
"fluent-ffmpeg": "^2.1.3",
"fs": "^0.0.1-security",
"node": "^22.9.0",
"node-html-parser": "^6.1.13",
"nodemon": "^3.1.4",
"telegraf": "^4.16.3",
@ -492,6 +494,11 @@
"node": ">= 6"
}
},
"node_modules/fs": {
"version": "0.0.1-security",
"resolved": "https://registry.npmjs.org/fs/-/fs-0.0.1-security.tgz",
"integrity": "sha512-3XY9e1pP0CVEUCdj5BmfIZxRBTSDycnbqhIOGec9QYtmVH2fbLpj86CFWkrNOkt/Fvty4KZG5lTglL9j/gJ87w=="
},
"node_modules/fsevents": {
"version": "2.3.3",
"resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz",
@ -685,6 +692,26 @@
"integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==",
"license": "MIT"
},
"node_modules/node": {
"version": "22.9.0",
"resolved": "https://registry.npmjs.org/node/-/node-22.9.0.tgz",
"integrity": "sha512-hdNcsLGOk7+ZHG5HW4HLWuNyIl5vilxpV82Cy4biKwjVkGzeUdMxtZBLiSo5H6QuQweyK+1MBK83M3gvsv+V5w==",
"hasInstallScript": true,
"dependencies": {
"node-bin-setup": "^1.0.0"
},
"bin": {
"node": "bin/node"
},
"engines": {
"npm": ">=5.0.0"
}
},
"node_modules/node-bin-setup": {
"version": "1.1.3",
"resolved": "https://registry.npmjs.org/node-bin-setup/-/node-bin-setup-1.1.3.tgz",
"integrity": "sha512-opgw9iSCAzT2+6wJOETCpeRYAQxSopqQ2z+N6BXwIMsQQ7Zj5M8MaafQY8JMlolRR6R1UXg2WmhKp0p9lSOivg=="
},
"node_modules/node-fetch": {
"version": "2.7.0",
"resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz",

View File

@ -13,6 +13,8 @@
"child_process": "^1.0.2",
"commander": "^12.1.0",
"fluent-ffmpeg": "^2.1.3",
"fs": "^0.0.1-security",
"node": "^22.9.0",
"node-html-parser": "^6.1.13",
"nodemon": "^3.1.4",
"telegraf": "^4.16.3",