From 0f11ec8dd32b50897c18588db948e96cf0fc2c70 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 1 Feb 2022 11:16:45 +0100 Subject: Prevent HLS transcoding after webtorrent transcoding --- server/controllers/api/videos/transcoding.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'server/controllers/api') diff --git a/server/controllers/api/videos/transcoding.ts b/server/controllers/api/videos/transcoding.ts index 388689c8a..fba4545c2 100644 --- a/server/controllers/api/videos/transcoding.ts +++ b/server/controllers/api/videos/transcoding.ts @@ -25,7 +25,7 @@ export { async function createTranscoding (req: express.Request, res: express.Response) { const video = res.locals.videoAll - logger.info('Creating %s transcoding job for %s.', req.body.type, video.url, lTags()) + logger.info('Creating %s transcoding job for %s.', req.body.transcodingType, video.url, lTags()) const body: VideoTranscodingCreate = req.body @@ -53,8 +53,9 @@ async function createTranscoding (req: express.Request, res: express.Response) { type: 'new-resolution-to-webtorrent', videoUUID: video.uuid, isNewVideo: false, - resolution: resolution, + resolution, hasAudio: !!audioStream, + createHLSIfNeeded: false, isPortraitMode }) } -- cgit v1.2.3