aboutsummaryrefslogtreecommitdiff
path: root/scripts/ytdlp_flatten.ts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/ytdlp_flatten.ts')
-rw-r--r--scripts/ytdlp_flatten.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/ytdlp_flatten.ts b/scripts/ytdlp_flatten.ts
index f2eaa65..6a3eb5e 100644
--- a/scripts/ytdlp_flatten.ts
+++ b/scripts/ytdlp_flatten.ts
@@ -5,7 +5,9 @@ const ws = new WebSocket(Deno.args[0])
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: "yt-dlp playlist flattener", sources: ["ytdlp-flatten"] }))
+ ws.send(JSON.stringify({ t: "accept" }))
}
ws.onmessage = ev => {
console.log(ev.data);