From f5bdcd57734ad601a18aa68c7436d4010bf7acb9 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Mon, 19 May 2025 19:26:20 +0200 Subject: save after download --- scripts/ytdlp_download.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/ytdlp_download.ts b/scripts/ytdlp_download.ts index 760ac26..b98e921 100644 --- a/scripts/ytdlp_download.ts +++ b/scripts/ytdlp_download.ts @@ -70,6 +70,7 @@ async function do_download(key: string, data: { [key: string]: string }) { if (!status.success) throw new Error("download failed"); ws.send(JSON.stringify({ t: "metadata", key, data: { progress: null, status: null } })) ws.send(JSON.stringify({ t: "complete", key })) + ws.send(JSON.stringify({ t: "save" })) } ws.onerror = () => console.error("ws error") -- cgit v1.2.3-70-g09d2