mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-04 02:09:37 +02:00
Add ability to disable storyboards
This commit is contained in:
parent
482223cc23
commit
b9077c83fc
23 changed files with 131 additions and 60 deletions
|
@ -4,6 +4,7 @@ import { initDatabaseModels } from '@server/initializers/database.js'
|
|||
import { JobQueue } from '@server/lib/job-queue/index.js'
|
||||
import { StoryboardModel } from '@server/models/video/storyboard.js'
|
||||
import { VideoModel } from '@server/models/video/video.js'
|
||||
import { buildStoryboardJobIfNeeded } from '@server/lib/video.js'
|
||||
|
||||
program
|
||||
.description('Generate videos storyboard')
|
||||
|
@ -60,13 +61,7 @@ async function run () {
|
|||
|
||||
if (videoFull.isLive) continue
|
||||
|
||||
await JobQueue.Instance.createJob({
|
||||
type: 'generate-video-storyboard',
|
||||
payload: {
|
||||
videoUUID: videoFull.uuid,
|
||||
federate: true
|
||||
}
|
||||
})
|
||||
await JobQueue.Instance.createJob(buildStoryboardJobIfNeeded({ video: videoFull, federate: true }))
|
||||
|
||||
console.log(`Created generate-storyboard job for ${videoFull.name}.`)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue