From 598de0c426cda41f8aa102d6543c8a80cbc825f6 Mon Sep 17 00:00:00 2001 From: Bingus_Violet Date: Thu, 18 Jan 2024 18:38:59 -0600 Subject: [PATCH] fix audio formats --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 7a1ab9e..a2b12da 100644 --- a/index.js +++ b/index.js @@ -78,7 +78,7 @@ app.get("/download", async (req, res) => { } else { var fileName = Math.round(Math.random() * 100_000_000_000_000).toString() + fileExtension - var filePath = path.join(__dirname, 'downloads', fileName) + var filePath = path.join(__dirname, 'downloads', fileName).trim() var ytdlpProcess = cp.spawn('yt-dlp', [ url, '-x',