diff options
author | Chocobozzz <me@florianbigard.com> | 2021-02-02 14:00:46 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-02-02 14:00:46 +0100 |
commit | 69eddafb17c4cf8e5a6dbd19e6d216c58140d153 (patch) | |
tree | b211a62a88b0f57c371bc9e9b83de6ea1a0ee55e /server/lib/video-transcoding.ts | |
parent | d1a2ce5ef336a0fb260ff50a6740ebe483d9b8b9 (diff) | |
download | PeerTube-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.ts | 4 |
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 | ||