aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib/job-queue/handlers/generate-storyboard.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/lib/job-queue/handlers/generate-storyboard.ts')
-rw-r--r--server/lib/job-queue/handlers/generate-storyboard.ts5
1 files changed, 5 insertions, 0 deletions
diff --git a/server/lib/job-queue/handlers/generate-storyboard.ts b/server/lib/job-queue/handlers/generate-storyboard.ts
index 652cac272..09b746a3e 100644
--- a/server/lib/job-queue/handlers/generate-storyboard.ts
+++ b/server/lib/job-queue/handlers/generate-storyboard.ts
@@ -43,6 +43,11 @@ async function processGenerateStoryboard (job: Job): Promise<void> {
43 const destination = join(CONFIG.STORAGE.STORYBOARDS_DIR, filename) 43 const destination = join(CONFIG.STORAGE.STORYBOARDS_DIR, filename)
44 44
45 const totalSprites = buildTotalSprites(video) 45 const totalSprites = buildTotalSprites(video)
46 if (totalSprites === 0) {
47 logger.info('Do not generate a storyboard of %s because the video is not long enough', payload.videoUUID, lTags)
48 return
49 }
50
46 const spriteDuration = Math.round(video.duration / totalSprites) 51 const spriteDuration = Math.round(video.duration / totalSprites)
47 52
48 const spritesCount = findGridSize({ 53 const spritesCount = findGridSize({