From: Chocobozzz Date: Tue, 11 Dec 2018 14:56:35 +0000 (+0100) Subject: Overwrite video caption X-Git-Tag: v1.2.0-rc.1~77 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=44848a51dc239ccb55046bb5f422f03bba26d57b;p=oweals%2Fpeertube.git Overwrite video caption --- diff --git a/server/helpers/captions-utils.ts b/server/helpers/captions-utils.ts index 1aafbf805..0fb11a125 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