Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Overwrite video caption

Chocobozzz44848a51dc23
diff --git a/server/helpers/captions-utils.ts b/server/helpers/captions-utils.ts
index 1aafbf8056..0fb11a1251 100644
--- a/server/helpers/captions-utils.ts
+++ b/server/helpers/captions-utils.ts
@@ -13,7 +13,7 @@ async function moveAndProcessCaptionFile (physicalFile: { filename: string, path
await convertSrtToVtt(physicalFile.path, destination)
await remove(physicalFile.path)
} else { // Just move the vtt file
- await move(physicalFile.path, destination)
+ await move(physicalFile.path, destination, { overwrite: true })
}
// This is important in case if there is another attempt in the retry process