diff options
author | metamuffin <metamuffin@disroot.org> | 2025-05-18 19:46:16 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2025-05-18 19:46:16 +0200 |
commit | 51819226e6d4eb122d70b9b1897d6ce935434998 (patch) | |
tree | 305d9e83c02fe38756fa3c2e0e45407765e4f0f8 /scripts | |
parent | a9bfe40f63207f11cfcf50ba8ff6010e4377c134 (diff) | |
download | isda-51819226e6d4eb122d70b9b1897d6ce935434998.tar isda-51819226e6d4eb122d70b9b1897d6ce935434998.tar.bz2 isda-51819226e6d4eb122d70b9b1897d6ce935434998.tar.zst |
center lists
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/ytdlp_download.ts | 3 |
1 files changed, 1 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 => { |