From ab8f6d936a6bf1427a63dd3a0231fb09708e50e0 Mon Sep 17 00:00:00 2001 From: sky Date: Tue, 12 Aug 2025 15:41:14 -0400 Subject: [PATCH] fix typo --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index de75dd6..d445c4d 100644 --- a/index.js +++ b/index.js @@ -8,7 +8,7 @@ Bun.serve({ GET: async req => { if(req.headers.get("X-Authentication") == process.env.PRIVATE_KEY) { let path = "tmp/" + Bun.randomUUIDv7(); - await `yt-dlp '${req.query.url}' -q -o "${path.mp4}"` + await `yt-dlp '${req.query.url}' -q -o "${path}.mp4"` await $`ffmpeg -i ${path}.mp4 -map_metadata -1 -map 0 -map -0:v -b:a 64k ${path}.ogg` await (Bun.file(path + ".mp4")).delete(); let response = new Response(await Bun.file(path + ".ogg").bytes(), {