From 1c27a83409a7f51c5d07098cb6ca65bcee870d9c Mon Sep 17 00:00:00 2001 From: metamuffin Date: Sat, 17 May 2025 17:23:29 +0200 Subject: a --- scripts/ytdlp_flatten.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 scripts/ytdlp_flatten.ts (limited to 'scripts/ytdlp_flatten.ts') diff --git a/scripts/ytdlp_flatten.ts b/scripts/ytdlp_flatten.ts new file mode 100644 index 0000000..f2eaa65 --- /dev/null +++ b/scripts/ytdlp_flatten.ts @@ -0,0 +1,12 @@ + + +const ws = new WebSocket(Deno.args[0]) + +ws.onerror = () => console.error("ws error") +ws.onclose = () => console.error("ws closed") +ws.onopen = () => { + ws.send(JSON.stringify({ t: "register", name: "yt-dlp playlist flattener", sources: ["ytdlp-flatten"] })) +} +ws.onmessage = ev => { + console.log(ev.data); +} -- cgit v1.2.3-70-g09d2