fix issue with different level of compression not working

This commit is contained in:
loicbersier 2019-10-12 18:06:54 +02:00
parent 4e86016fa5
commit 6bb2ffe00d

View file

@ -31,10 +31,10 @@ class vidshittifierCommand extends Command {
let input = `${os.tmpdir()}/${message.id}.mp4`;
let output = `${os.tmpdir()}/Shittifyed${message.id}.mp4`;
let compression;
if (args.compression == 1) {
compression = '10M';
} else if (args.compression == 2) {
if (args.compresion == 1) {
compression = '5M';
} else if (args.compresion == 2) {
compression = '1M';
} else {
compression = '10k';
}