aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib/video-transcoding.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-02-02 14:00:46 +0100
committerChocobozzz <me@florianbigard.com>2021-02-02 14:00:46 +0100
commit69eddafb17c4cf8e5a6dbd19e6d216c58140d153 (patch)
treeb211a62a88b0f57c371bc9e9b83de6ea1a0ee55e /server/lib/video-transcoding.ts
parentd1a2ce5ef336a0fb260ff50a6740ebe483d9b8b9 (diff)
downloadPeerTube-69eddafb17c4cf8e5a6dbd19e6d216c58140d153.tar.gz
PeerTube-69eddafb17c4cf8e5a6dbd19e6d216c58140d153.tar.zst
PeerTube-69eddafb17c4cf8e5a6dbd19e6d216c58140d153.zip
Fix HLS generation after import script
Diffstat (limited to 'server/lib/video-transcoding.ts')
-rw-r--r--server/lib/video-transcoding.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/lib/video-transcoding.ts b/server/lib/video-transcoding.ts
index d32372fe5..88a6e0673 100644
--- a/server/lib/video-transcoding.ts
+++ b/server/lib/video-transcoding.ts
@@ -334,9 +334,9 @@ async function generateHlsPlaylistCommon (options: {
334 334
335 // Move playlist file 335 // Move playlist file
336 const playlistPath = join(baseHlsDirectory, playlistFilename) 336 const playlistPath = join(baseHlsDirectory, playlistFilename)
337 await move(playlistFileTranscodePath, playlistPath) 337 await move(playlistFileTranscodePath, playlistPath, { overwrite: true })
338 // Move video file 338 // Move video file
339 await move(join(videoTranscodedBasePath, videoFilename), videoFilePath) 339 await move(join(videoTranscodedBasePath, videoFilename), videoFilePath, { overwrite: true })
340 // Cleanup directory 340 // Cleanup directory
341 await remove(videoTranscodedBasePath) 341 await remove(videoTranscodedBasePath)
342 342