aboutsummaryrefslogtreecommitdiff
path: root/scripts/ytdlp_download.ts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/ytdlp_download.ts')
-rw-r--r--scripts/ytdlp_download.ts3
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 => {