mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-09-04 16:42:27 +00:00
fix(engine): make video downloads atomic and retry transient failures
This commit is contained in:
@@ -730,7 +730,7 @@ export async function extractAllVideoFrames(
|
||||
if (isHttpUrl(videoPath)) {
|
||||
const downloadDir = join(options.outputDir, "_downloads");
|
||||
mkdirSync(downloadDir, { recursive: true });
|
||||
videoPath = await downloadToTemp(videoPath, downloadDir);
|
||||
videoPath = await downloadToTemp(videoPath, downloadDir, undefined, signal);
|
||||
}
|
||||
|
||||
if (!existsSync(videoPath)) {
|
||||
|
||||
Reference in New Issue
Block a user