diff options
author | Chocobozzz <me@florianbigard.com> | 2018-12-11 15:56:35 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-12-11 15:56:35 +0100 |
commit | 44848a51dc239ccb55046bb5f422f03bba26d57b (patch) | |
tree | 58605df63cf4eebbd95ea061b3e2d215fdf02231 /server/helpers | |
parent | dae5ca24b173aebd16de2a202ccd4088568b8dfb (diff) | |
download | PeerTube-44848a51dc239ccb55046bb5f422f03bba26d57b.tar.gz PeerTube-44848a51dc239ccb55046bb5f422f03bba26d57b.tar.zst PeerTube-44848a51dc239ccb55046bb5f422f03bba26d57b.zip |
Overwrite video caption
Diffstat (limited to 'server/helpers')
-rw-r--r-- | server/helpers/captions-utils.ts | 2 |
1 files changed, 1 insertions, 1 deletions
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 | |||
13 | await convertSrtToVtt(physicalFile.path, destination) | 13 | await convertSrtToVtt(physicalFile.path, destination) |
14 | await remove(physicalFile.path) | 14 | await remove(physicalFile.path) |
15 | } else { // Just move the vtt file | 15 | } else { // Just move the vtt file |
16 | await move(physicalFile.path, destination) | 16 | await move(physicalFile.path, destination, { overwrite: true }) |
17 | } | 17 | } |
18 | 18 | ||
19 | // This is important in case if there is another attempt in the retry process | 19 | // This is important in case if there is another attempt in the retry process |