forked from Supositware/Haha-Yes
--max-filesize didint do anything
This commit is contained in:
parent
34b41410fd
commit
39c2546dfe
1 changed files with 2 additions and 2 deletions
|
@ -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!)');
|
||||
|
|
Loading…
Reference in a new issue