From 995634a4b2d288c60a4403a7585de78f9203530f Mon Sep 17 00:00:00 2001 From: Supositware Date: Sun, 28 Jan 2024 22:11:33 +0100 Subject: [PATCH] Limit videos to 480p --- commands/utility/addytp.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/utility/addytp.js b/commands/utility/addytp.js index 74b78e08..6c0a69f2 100644 --- a/commands/utility/addytp.js +++ b/commands/utility/addytp.js @@ -30,7 +30,7 @@ export default { await interaction.deferReply({ ephemeral: true }); - utils.downloadVideo(url, interaction.id, 'mp4') + utils.downloadVideo(url, interaction.id, 'bestvideo[height<=?480]+bestaudio/best') .then(async () => { const file = fs.readdirSync(os.tmpdir()).filter(fn => fn.startsWith(interaction.id)); const output = `${os.tmpdir()}/${file}`;