aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib/video-transcoding.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/lib/video-transcoding.ts')
-rw-r--r--server/lib/video-transcoding.ts4
1 files changed, 1 insertions, 3 deletions
diff --git a/server/lib/video-transcoding.ts b/server/lib/video-transcoding.ts
index 88a6e0673..a58c9dd20 100644
--- a/server/lib/video-transcoding.ts
+++ b/server/lib/video-transcoding.ts
@@ -272,7 +272,7 @@ async function generateHlsPlaylistCommon (options: {
272 const { type, video, inputPath, resolution, copyCodecs, isPortraitMode, isAAC, job } = options 272 const { type, video, inputPath, resolution, copyCodecs, isPortraitMode, isAAC, job } = options
273 const transcodeDirectory = CONFIG.STORAGE.TMP_DIR 273 const transcodeDirectory = CONFIG.STORAGE.TMP_DIR
274 274
275 const videoTranscodedBasePath = join(transcodeDirectory, type, video.uuid) 275 const videoTranscodedBasePath = join(transcodeDirectory, type)
276 await ensureDir(videoTranscodedBasePath) 276 await ensureDir(videoTranscodedBasePath)
277 277
278 const videoFilename = generateVideoStreamingPlaylistName(video.uuid, resolution) 278 const videoFilename = generateVideoStreamingPlaylistName(video.uuid, resolution)
@@ -337,8 +337,6 @@ async function generateHlsPlaylistCommon (options: {
337 await move(playlistFileTranscodePath, playlistPath, { overwrite: true }) 337 await move(playlistFileTranscodePath, playlistPath, { overwrite: true })
338 // Move video file 338 // Move video file
339 await move(join(videoTranscodedBasePath, videoFilename), videoFilePath, { overwrite: true }) 339 await move(join(videoTranscodedBasePath, videoFilename), videoFilePath, { overwrite: true })
340 // Cleanup directory
341 await remove(videoTranscodedBasePath)
342 340
343 const stats = await stat(videoFilePath) 341 const stats = await stat(videoFilePath)
344 342