Limit videos to 480p

This commit is contained in:
Supositware 2024-01-28 22:11:33 +01:00
parent 3464736d85
commit 995634a4b2

View file

@ -30,7 +30,7 @@ export default {
await interaction.deferReply({ ephemeral: true }); await interaction.deferReply({ ephemeral: true });
utils.downloadVideo(url, interaction.id, 'mp4') utils.downloadVideo(url, interaction.id, 'bestvideo[height<=?480]+bestaudio/best')
.then(async () => { .then(async () => {
const file = fs.readdirSync(os.tmpdir()).filter(fn => fn.startsWith(interaction.id)); const file = fs.readdirSync(os.tmpdir()).filter(fn => fn.startsWith(interaction.id));
const output = `${os.tmpdir()}/${file}`; const output = `${os.tmpdir()}/${file}`;