mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2026-09-03 20:53:09 -05:00
Rename studio to editor
This commit is contained in:
@@ -49,7 +49,7 @@ function checkConfig () {
|
||||
checkSearchConfig()
|
||||
checkLiveConfig()
|
||||
checkObjectStorageConfig()
|
||||
checkVideoEditorConfig()
|
||||
checkVideoStudioConfig()
|
||||
}
|
||||
|
||||
// We get db by param to not import it in this file (import orders)
|
||||
@@ -260,8 +260,8 @@ function checkObjectStorageConfig () {
|
||||
}
|
||||
}
|
||||
|
||||
function checkVideoEditorConfig () {
|
||||
if (CONFIG.VIDEO_EDITOR.ENABLED === true && CONFIG.TRANSCODING.ENABLED === false) {
|
||||
throw new Error('Video editor cannot be enabled if transcoding is disabled')
|
||||
function checkVideoStudioConfig () {
|
||||
if (CONFIG.VIDEO_STUDIO.ENABLED === true && CONFIG.TRANSCODING.ENABLED === false) {
|
||||
throw new Error('Video studio cannot be enabled if transcoding is disabled')
|
||||
}
|
||||
}
|
||||
|
||||
@@ -30,7 +30,7 @@ function checkMissedConfig () {
|
||||
'transcoding.profile', 'transcoding.concurrency',
|
||||
'transcoding.resolutions.0p', 'transcoding.resolutions.144p', 'transcoding.resolutions.240p', 'transcoding.resolutions.360p',
|
||||
'transcoding.resolutions.480p', 'transcoding.resolutions.720p', 'transcoding.resolutions.1080p', 'transcoding.resolutions.1440p',
|
||||
'transcoding.resolutions.2160p', 'video_editor.enabled',
|
||||
'transcoding.resolutions.2160p', 'video_studio.enabled',
|
||||
'import.videos.http.enabled', 'import.videos.torrent.enabled', 'import.videos.concurrency', 'auto_blacklist.videos.of_users.enabled',
|
||||
'trending.videos.interval_days',
|
||||
'client.videos.miniature.display_author_avatar',
|
||||
|
||||
@@ -335,8 +335,8 @@ const CONFIG = {
|
||||
}
|
||||
}
|
||||
},
|
||||
VIDEO_EDITOR: {
|
||||
get ENABLED () { return config.get<boolean>('video_editor.enabled') }
|
||||
VIDEO_STUDIO: {
|
||||
get ENABLED () { return config.get<boolean>('video_studio.enabled') }
|
||||
},
|
||||
IMPORT: {
|
||||
VIDEOS: {
|
||||
|
||||
@@ -152,7 +152,7 @@ const JOB_ATTEMPTS: { [id in JobType]: number } = {
|
||||
'activitypub-refresher': 1,
|
||||
'video-redundancy': 1,
|
||||
'video-live-ending': 1,
|
||||
'video-edition': 1,
|
||||
'video-studio-edition': 1,
|
||||
'manage-video-torrent': 1,
|
||||
'move-to-object-storage': 3
|
||||
}
|
||||
@@ -170,7 +170,7 @@ const JOB_CONCURRENCY: { [id in Exclude<JobType, 'video-transcoding' | 'video-im
|
||||
'activitypub-refresher': 1,
|
||||
'video-redundancy': 1,
|
||||
'video-live-ending': 10,
|
||||
'video-edition': 1,
|
||||
'video-studio-edition': 1,
|
||||
'manage-video-torrent': 1,
|
||||
'move-to-object-storage': 1
|
||||
}
|
||||
@@ -182,7 +182,7 @@ const JOB_TTL: { [id in JobType]: number } = {
|
||||
'activitypub-cleaner': 1000 * 3600, // 1 hour
|
||||
'video-file-import': 1000 * 3600, // 1 hour
|
||||
'video-transcoding': 1000 * 3600 * 48, // 2 days, transcoding could be long
|
||||
'video-edition': 1000 * 3600 * 10, // 10 hours
|
||||
'video-studio-edition': 1000 * 3600 * 10, // 10 hours
|
||||
'video-import': 1000 * 3600 * 2, // 2 hours
|
||||
'email': 60000 * 10, // 10 minutes
|
||||
'actor-keys': 60000 * 20, // 20 minutes
|
||||
@@ -358,7 +358,7 @@ const CONSTRAINTS_FIELDS = {
|
||||
COMMONS: {
|
||||
URL: { min: 5, max: 2000 } // Length
|
||||
},
|
||||
VIDEO_EDITOR: {
|
||||
VIDEO_STUDIO: {
|
||||
TASKS: { min: 1, max: 10 }, // Number of tasks
|
||||
CUT_TIME: { min: 0 } // Value
|
||||
}
|
||||
|
||||
@@ -14,11 +14,11 @@ async function up (utils: {
|
||||
defaultValue: null,
|
||||
allowNull: true
|
||||
}
|
||||
await utils.queryInterface.addColumn('userNotificationSetting', 'myVideoEditionFinished', data, { transaction })
|
||||
await utils.queryInterface.addColumn('userNotificationSetting', 'myVideoStudioEditionFinished', data, { transaction })
|
||||
}
|
||||
|
||||
{
|
||||
const query = 'UPDATE "userNotificationSetting" SET "myVideoEditionFinished" = 1'
|
||||
const query = 'UPDATE "userNotificationSetting" SET "myVideoStudioEditionFinished" = 1'
|
||||
await utils.sequelize.query(query, { transaction })
|
||||
}
|
||||
|
||||
@@ -28,7 +28,7 @@ async function up (utils: {
|
||||
defaultValue: null,
|
||||
allowNull: false
|
||||
}
|
||||
await utils.queryInterface.changeColumn('userNotificationSetting', 'myVideoEditionFinished', data, { transaction })
|
||||
await utils.queryInterface.changeColumn('userNotificationSetting', 'myVideoStudioEditionFinished', data, { transaction })
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user