]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Fix preview generation for imports
authorChocobozzz <me@florianbigard.com>
Mon, 31 Oct 2022 13:29:48 +0000 (14:29 +0100)
committerChocobozzz <me@florianbigard.com>
Mon, 31 Oct 2022 13:29:48 +0000 (14:29 +0100)
server/lib/job-queue/handlers/video-import.ts

index 99016f5114f83e99328847cbeb08f81dd6eec00d..83d582cb415083b86a8009c4fb94b06de68776cd 100644 (file)
@@ -277,7 +277,7 @@ async function generateMiniature (videoImportWithFiles: MVideoImportDefaultFiles
   const miniatureModel = await generateVideoMiniature({
     video: videoImportWithFiles.Video,
     videoFile,
-    type: ThumbnailType.MINIATURE
+    type: thumbnailType
   })
   const miniatureJSONSave = miniatureModel.toJSON()