diff options
Diffstat (limited to 'scripts')
-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") |