From a0778ef237228d1fc25aed4da57b4021cf41f4ba Mon Sep 17 00:00:00 2001 From: Bingus_Violet Date: Wed, 17 Jan 2024 20:03:21 -0600 Subject: [PATCH] Errors!!! --- index.js | 3 ++- static/index.html | 8 ++++---- static/style.css | 8 ++++++++ 3 files changed, 14 insertions(+), 5 deletions(-) diff --git a/index.js b/index.js index 1ecdef0..cb1ff9f 100644 --- a/index.js +++ b/index.js @@ -72,6 +72,7 @@ app.get("/download", async (req, res) => { ytdlpProcess.stderr.setEncoding('utf-8') ytdlpProcess.stderr.on('data', (data) => { console.log(data) + res.write(`

` + data + `

`) }) var debounce = false @@ -98,7 +99,7 @@ app.get("/download", async (req, res) => { res.write(`"`) 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.

") + 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.

") console.log(filePath) } }) diff --git a/static/index.html b/static/index.html index 071de11..e793edb 100644 --- a/static/index.html +++ b/static/index.html @@ -12,7 +12,7 @@ -

Univerter

v3.2

+

Univerter

v4.0

And still javascript free...


@@ -51,11 +51,11 @@
-

Notes:

-

SD is 720p max, HD supports all qualities (even 4k!)

+

Univerter was designed for youtube, but if you need something different please consult this list to see if your site is there. Be warned, though, they are all untested, so please report issues you encounter!


-

Please consider donating or host the website yourself! Anything +

Please consider donating or host the website yourself! Anything helps! (Check Codeberg for more info)

+

Powered by yt-dlp

\ No newline at end of file diff --git a/static/style.css b/static/style.css index 1b0e02d..966ee96 100644 --- a/static/style.css +++ b/static/style.css @@ -61,4 +61,12 @@ input:hover { accent-color: var(--primary-color); width: 1.15rem; height: 1.15rem; +} + +.error { + background-color: rgb(50, 40, 70); + padding: 10px; + border: rgb(150, 50, 50) solid 2px; + border-radius: 15px; + display: inline-block; } \ No newline at end of file