From 39c2546dfea449589c8c38caa3a3272c93b16df0 Mon Sep 17 00:00:00 2001 From: loicbersier Date: Sat, 19 Jan 2019 17:41:55 +0100 Subject: [PATCH] --max-filesize didint do anything --- commands/utility/download.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/utility/download.js b/commands/utility/download.js index 11445848..cb948691 100644 --- a/commands/utility/download.js +++ b/commands/utility/download.js @@ -30,7 +30,7 @@ class DownloadCommand extends Command { let big = false; if (link.includes('http') || link.includes('www')) { - let video = youtubedl(link, [`--username=${fbuser}`, `--password=${fbpasswd}`, '--max-filesize', '8M']); + let video = youtubedl(link, [`--username=${fbuser}`, `--password=${fbpasswd}`]); video.pipe(fs.createWriteStream('./video.mp4')); video.on('error', function error(err) { console.log('error 2:', err); @@ -55,7 +55,7 @@ class DownloadCommand extends Command { output: 'videoReady.mp4', preset: 'General/Gmail Small 10 Minutes 288p30' }; - + //Compress vid if bigger than 8MB hbjs.spawn(options) .on('start', function() { message.channel.send('Vid bigger than 8MB compressing now ( This can take a long time!)');