From d8f39b126d9fe4bec1c12fb213548cc6edc87867 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 1 Jun 2023 14:51:16 +0200 Subject: Add storyboard support --- server/initializers/checker-before-init.ts | 3 ++- server/initializers/config.ts | 4 ++++ server/initializers/constants.ts | 19 ++++++++++++++++++- server/initializers/database.ts | 4 +++- 4 files changed, 27 insertions(+), 3 deletions(-) (limited to 'server/initializers') diff --git a/server/initializers/checker-before-init.ts b/server/initializers/checker-before-init.ts index 0a315ea70..939b73344 100644 --- a/server/initializers/checker-before-init.ts +++ b/server/initializers/checker-before-init.ts @@ -29,7 +29,8 @@ function checkMissedConfig () { 'video_channels.max_per_user', 'csp.enabled', 'csp.report_only', 'csp.report_uri', 'security.frameguard.enabled', 'security.powered_by_header.enabled', - 'cache.previews.size', 'cache.captions.size', 'cache.torrents.size', 'admin.email', 'contact_form.enabled', + 'cache.previews.size', 'cache.captions.size', 'cache.torrents.size', 'cache.storyboards.size', + 'admin.email', 'contact_form.enabled', 'signup.enabled', 'signup.limit', 'signup.requires_approval', 'signup.requires_email_verification', 'signup.minimum_age', 'signup.filters.cidr.whitelist', 'signup.filters.cidr.blacklist', 'redundancy.videos.strategies', 'redundancy.videos.check_interval', diff --git a/server/initializers/config.ts b/server/initializers/config.ts index 51ac5d0ce..60ab6e204 100644 --- a/server/initializers/config.ts +++ b/server/initializers/config.ts @@ -112,6 +112,7 @@ const CONFIG = { STREAMING_PLAYLISTS_DIR: buildPath(config.get('storage.streaming_playlists')), REDUNDANCY_DIR: buildPath(config.get('storage.redundancy')), THUMBNAILS_DIR: buildPath(config.get('storage.thumbnails')), + STORYBOARDS_DIR: buildPath(config.get('storage.storyboards')), PREVIEWS_DIR: buildPath(config.get('storage.previews')), CAPTIONS_DIR: buildPath(config.get('storage.captions')), TORRENTS_DIR: buildPath(config.get('storage.torrents')), @@ -482,6 +483,9 @@ const CONFIG = { }, TORRENTS: { get SIZE () { return config.get('cache.torrents.size') } + }, + STORYBOARDS: { + get SIZE () { return config.get('cache.storyboards.size') } } }, INSTANCE: { diff --git a/server/initializers/constants.ts b/server/initializers/constants.ts index e2f34fe16..3a643a60b 100644 --- a/server/initializers/constants.ts +++ b/server/initializers/constants.ts @@ -174,6 +174,7 @@ const JOB_ATTEMPTS: { [id in JobType]: number } = { 'after-video-channel-import': 1, 'move-to-object-storage': 3, 'transcoding-job-builder': 1, + 'generate-video-storyboard': 1, 'notify': 1, 'federate-video': 1 } @@ -198,6 +199,7 @@ const JOB_CONCURRENCY: { [id in Exclude