From dab4333fe92ac20c4eba145b3622736adf437e85 Mon Sep 17 00:00:00 2001
From: loicbersier <loic.bersier1@gmail.com>
Date: Sat, 12 Oct 2019 13:11:21 +0200
Subject: [PATCH] fix the option

---
 commands/fun/vidshittifyer.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/commands/fun/vidshittifyer.js b/commands/fun/vidshittifyer.js
index a4790892..2200cedf 100644
--- a/commands/fun/vidshittifyer.js
+++ b/commands/fun/vidshittifyer.js
@@ -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);