fix the option
This commit is contained in:
parent
867dda551d
commit
dab4333fe9
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue