From 1cb26a7f9984107dcbbd3e83d1e8eabb40653e64 Mon Sep 17 00:00:00 2001 From: Bingus_Violet Date: Thu, 18 Jan 2024 18:09:13 -0600 Subject: [PATCH] Redirect after download --- index.js | 2 +- static/index.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index e7d2403..7a1ab9e 100644 --- a/index.js +++ b/index.js @@ -125,7 +125,7 @@ app.get("/download", async (req, res) => { } else if (fs.existsSync(filePath)) { res.write(`"`) - res.write(downloadHTML.substring(downloadHTML.indexOf("{CONTENT}") + 9), () => { res.end() }) + res.write(downloadHTML.substring(downloadHTML.indexOf("{CONTENT}") + 9) + ``, () => { res.end() }) } else { res.write("

An error has occured!!! We're not exactly sure what the error is, but we cant seem to find the download file. Double check the URL, and if the URL is fine, then file an issue on codeberg.

") } diff --git a/static/index.html b/static/index.html index fd18b09..bb2ca38 100644 --- a/static/index.html +++ b/static/index.html @@ -17,7 +17,7 @@
-
+

Video URL: