diff options
author | metamuffin <metamuffin@disroot.org> | 2025-05-19 19:26:20 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2025-05-19 19:26:20 +0200 |
commit | f5bdcd57734ad601a18aa68c7436d4010bf7acb9 (patch) | |
tree | a4ff7c114de8ebb9af8877a6e741deed13ab2869 | |
parent | bad01b27453079ed3152eba87d9450543c88ef4d (diff) | |
download | isda-f5bdcd57734ad601a18aa68c7436d4010bf7acb9.tar isda-f5bdcd57734ad601a18aa68c7436d4010bf7acb9.tar.bz2 isda-f5bdcd57734ad601a18aa68c7436d4010bf7acb9.tar.zst |
save after download
-rw-r--r-- | scripts/ytdlp_download.ts | 1 |
1 files changed, 1 insertions, 0 deletions
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") |