set cookies

This commit is contained in:
GiovaniFZ 2024-09-30 08:55:12 -03:00
parent 81a2ad79dd
commit 0ba6f50d6f
No known key found for this signature in database
GPG Key ID: 63DD92181B575322

View File

@ -60,7 +60,7 @@ module.exports = (bot) => {
const videoUrl = ctx.message.text.split(' ').slice(1).join(' '); const videoUrl = ctx.message.text.split(' ').slice(1).join(' ');
const mp4File = `tmp/${userId}.mp4`; const mp4File = `tmp/${userId}.mp4`;
const cmdArgs = "--max-filesize 2G --no-playlist --merge-output-format mp4 -o"; const cmdArgs = "--max-filesize 2G --no-playlist --cookies props/cookies.txt --merge-output-format mp4 -o";
const dlpCommand = ytDlpPath; const dlpCommand = ytDlpPath;
try { try {