From 51819226e6d4eb122d70b9b1897d6ce935434998 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Sun, 18 May 2025 19:46:16 +0200 Subject: center lists --- scripts/ytdlp_download.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'scripts/ytdlp_download.ts') 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 { } } - 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 => { -- cgit v1.2.3-70-g09d2