fix the option

This commit is contained in:
loicbersier 2019-10-12 13:11:21 +02:00
parent 867dda551d
commit dab4333fe9

View file

@ -38,8 +38,6 @@ class vidshittifyerCommand extends Command {
let input = `${os.tmpdir()}/${message.id}.mp4`;
let output = `${os.tmpdir()}/Shittifyed${message.id}.mp4`;
let compression;
let option = `-b:v ${compression} -b:a ${compression}`;
if (args.link) {
if (args.compression == 1) {
compression = '10m';
@ -48,6 +46,8 @@ class vidshittifyerCommand extends Command {
} else {
compression = '10k';
}
let option = `-b:v ${compression} -b:a ${compression}`;
let video = youtubedl(args.link);
video.on('error', function error(err) {
console.log('error 2:', err);