aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2025-05-18 19:46:16 +0200
committermetamuffin <metamuffin@disroot.org>2025-05-18 19:46:16 +0200
commit51819226e6d4eb122d70b9b1897d6ce935434998 (patch)
tree305d9e83c02fe38756fa3c2e0e45407765e4f0f8
parenta9bfe40f63207f11cfcf50ba8ff6010e4377c134 (diff)
downloadisda-51819226e6d4eb122d70b9b1897d6ce935434998.tar
isda-51819226e6d4eb122d70b9b1897d6ce935434998.tar.bz2
isda-51819226e6d4eb122d70b9b1897d6ce935434998.tar.zst
center lists
-rw-r--r--scripts/ytdlp_download.ts3
-rw-r--r--src/style.css5
2 files changed, 6 insertions, 2 deletions
diff --git a/scripts/ytdlp_download.ts b/scripts/ytdlp_download.ts
index cc45367..f82e3b8 100644
--- a/scripts/ytdlp_download.ts
+++ b/scripts/ytdlp_download.ts
@@ -22,7 +22,6 @@ export class TextLineStream extends TransformStream<string, string> {
}
}
-
function key_to_url(key: string): string {
const [kind, id] = key.split(":", 2)
if (kind == "youtube") return `https://youtube.com/watch?v=${id}`
@@ -77,7 +76,7 @@ ws.onerror = () => console.error("ws error")
ws.onclose = () => console.error("ws closed")
ws.onopen = () => {
console.log("ws open");
- ws.send(JSON.stringify({ t: "register", name: "dummy worker", task_kinds: ["youtube"] }))
+ ws.send(JSON.stringify({ t: "register", name: "yt-dlp video downloader", task_kinds: ["youtube"] }))
ws.send(JSON.stringify({ t: "accept" }))
}
ws.onmessage = async ev => {
diff --git a/src/style.css b/src/style.css
index 8ca6be1..4b30b32 100644
--- a/src/style.css
+++ b/src/style.css
@@ -55,6 +55,11 @@
border-color: #6e6eff;
}
+ul {
+ padding-left: 20px;
+ padding-right: 20px;
+}
+
section.tasks {
display: flex;
width: 100%;