Skip to content

🎥 Make videos programmatically with React

`@remotion/example-videos`: Retry media downloads (#9416)

Igor Samokhovets489746b11aad
diff --git a/packages/example-videos/src/cached-example-media.ts b/packages/example-videos/src/cached-example-media.ts
index 50e985666d..2475873398 100644
--- a/packages/example-videos/src/cached-example-media.ts
+++ b/packages/example-videos/src/cached-example-media.ts
@@ -38,7 +38,7 @@ const downloadFile = async (url: string, location: string) => {
const {$} = await import('bun');
console.log('Downloading', url);
console.time(`Download ${url}`);
- await $`curl -f -o ${location} ${url}`;
+ await $`curl -f --retry 3 --retry-all-errors -o ${location} ${url}`;
console.timeEnd(`Download ${url}`);
};