diff --git a/commands/utility/download.js b/commands/utility/download.js index 92f872b8..914dc4b3 100644 --- a/commands/utility/download.js +++ b/commands/utility/download.js @@ -66,7 +66,7 @@ class DownloadCommand extends Command { if (err); }); } - return youtubedl.exec(link, ['-o', `${os.tmpdir()}/${fileName}`], {}, async function(err) { + return youtubedl.exec(link, ['--recode-video', 'mp4', '-o', `${os.tmpdir()}/${fileName}`], {}, async function(err) { if (err) { console.error(err); loadingmsg.delete(); @@ -81,7 +81,6 @@ class DownloadCommand extends Command { fs.renameSync(`${os.tmpdir()}/${fileName}`, `${os.tmpdir()}/${fileName}.${ext}`); } - let file = fs.statSync(`${os.tmpdir()}/${fileName}.${ext}`); let fileSize = file.size / 1000000.0;