1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-05 10:49:28 +02:00

Fix HLS generation after import script

This commit is contained in:
Chocobozzz 2021-02-02 14:00:46 +01:00
parent d1a2ce5ef3
commit 69eddafb17
No known key found for this signature in database
GPG key ID: 583A612D890159BE
3 changed files with 15 additions and 4 deletions

View file

@ -334,9 +334,9 @@ async function generateHlsPlaylistCommon (options: {
// Move playlist file
const playlistPath = join(baseHlsDirectory, playlistFilename)
await move(playlistFileTranscodePath, playlistPath)
await move(playlistFileTranscodePath, playlistPath, { overwrite: true })
// Move video file
await move(join(videoTranscodedBasePath, videoFilename), videoFilePath)
await move(join(videoTranscodedBasePath, videoFilename), videoFilePath, { overwrite: true })
// Cleanup directory
await remove(videoTranscodedBasePath)