From 0ba6f50d6f4ff05405e9cf7192bdc73027e08c21 Mon Sep 17 00:00:00 2001 From: GiovaniFZ Date: Mon, 30 Sep 2024 08:55:12 -0300 Subject: [PATCH] set cookies --- commands/youtube.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/youtube.js b/commands/youtube.js index 29f3005..6bc1e38 100644 --- a/commands/youtube.js +++ b/commands/youtube.js @@ -60,7 +60,7 @@ module.exports = (bot) => { const videoUrl = ctx.message.text.split(' ').slice(1).join(' '); 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; try {