From 183b01f5f0ab7d1ff5c43c3847295ab52e71390c Mon Sep 17 00:00:00 2001 From: loicbersier Date: Fri, 6 Mar 2020 15:14:27 +0100 Subject: [PATCH] webm --- commands/utility/download.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/commands/utility/download.js b/commands/utility/download.js index b247f29..a0460db 100644 --- a/commands/utility/download.js +++ b/commands/utility/download.js @@ -88,6 +88,8 @@ class DownloadCommand extends Command { fs.renameSync(`${os.tmpdir()}/${fileName}`, `${os.tmpdir()}/${fileName}.${ext}`); } else if (fs.existsSync(`${os.tmpdir()}/${fileName}.mkv`)) { // If it can't find the video assume it got merged and end with mkv fs.renameSync(`${os.tmpdir()}/${fileName}.mkv`, `${os.tmpdir()}/${fileName}.mp4`); // Discord play mkv just fine but it need to end with mp4 + } else if (fs.existsSync(`${os.tmpdir()}/${fileName}.webm`)) { // Same as mkv + ext = 'webm'; } let file = fs.statSync(`${os.tmpdir()}/${fileName}.${ext}`);