From 89f067e0ed2a900c32d95beae668c0321d7da79f Mon Sep 17 00:00:00 2001 From: metamuffin Date: Wed, 21 May 2025 19:00:24 +0200 Subject: finish up channel info script --- scripts/ytdlp_flatten.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/ytdlp_flatten.ts') diff --git a/scripts/ytdlp_flatten.ts b/scripts/ytdlp_flatten.ts index a433665..5145196 100644 --- a/scripts/ytdlp_flatten.ts +++ b/scripts/ytdlp_flatten.ts @@ -73,8 +73,8 @@ ws.onmessage = async ev => { if (p.t == "error") console.error(`error: ${p.message}`); if (p.t == "work") { const [outkind, url] = key_to_url(p.key) - if (!p.data.output) throw new Error("no output"); await flat_playlist(url, outkind, p.data) + ws.send(JSON.stringify({ t: "metadata", key: key_to_infokey(p.key), data: p.data })) ws.send(JSON.stringify({ t: "enqueue", key: key_to_infokey(p.key) })) ws.send(JSON.stringify({ t: "complete", key: p.key })) ws.send(JSON.stringify({ t: "save" })) -- cgit v1.2.3-70-g09d2