aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers/api
diff options
context:
space:
mode:
Diffstat (limited to 'server/controllers/api')
-rw-r--r--server/controllers/api/videos/import.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/server/controllers/api/videos/import.ts b/server/controllers/api/videos/import.ts
index 52864bdfd..3c445efce 100644
--- a/server/controllers/api/videos/import.ts
+++ b/server/controllers/api/videos/import.ts
@@ -216,10 +216,10 @@ async function buildVideo (channelId: number, body: VideoImportCreate, importDat
216 name: body.name || importData.name || 'Unknown name', 216 name: body.name || importData.name || 'Unknown name',
217 remote: false, 217 remote: false,
218 category: body.category || importData.category, 218 category: body.category || importData.category,
219 licence: body.licence || importData.licence, 219 licence: body.licence ?? importData.licence ?? CONFIG.DEFAULTS.PUBLISH.LICENCE,
220 language: body.language || importData.language, 220 language: body.language || importData.language,
221 commentsEnabled: body.commentsEnabled !== false, // If the value is not "false", the default is "true" 221 commentsEnabled: body.commentsEnabled ?? CONFIG.DEFAULTS.PUBLISH.COMMENTS_ENABLED,
222 downloadEnabled: body.downloadEnabled !== false, 222 downloadEnabled: body.downloadEnabled ?? CONFIG.DEFAULTS.PUBLISH.DOWNLOAD_ENABLED,
223 waitTranscoding: body.waitTranscoding || false, 223 waitTranscoding: body.waitTranscoding || false,
224 state: VideoState.TO_IMPORT, 224 state: VideoState.TO_IMPORT,
225 nsfw: body.nsfw || importData.nsfw || false, 225 nsfw: body.nsfw || importData.nsfw || false,