From 0c4cb405f9b166398a2bf7e128c47fa56dfa2d71 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Sat, 17 May 2025 18:27:00 +0200 Subject: enqueue works --- scripts/ytdlp_flatten.ts | 2 ++ 1 file changed, 2 insertions(+) (limited to 'scripts/ytdlp_flatten.ts') 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); -- cgit v1.2.3-70-g09d2