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:
parent
d1a2ce5ef3
commit
69eddafb17
3 changed files with 15 additions and 4 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue