X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Flib%2Fvideo-import.ts;h=7960798758f9fbf5037588d964568d404a7c2c2b;hb=cea2fd90ddb3bf57c2fed77128938d12d4c2be6b;hp=de95116aa6d06cb1b495b19c0536801d9f7ddf0a;hpb=a3b472a12ec6e57dbe2f650419f8064864686eab;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/lib/video-import.ts b/server/lib/video-import.ts index de95116aa..796079875 100644 --- a/server/lib/video-import.ts +++ b/server/lib/video-import.ts @@ -115,7 +115,7 @@ async function buildVideoFromImport ({ channelId, importData, importDataOverride language: importDataOverride?.language || importData.language, commentsEnabled: importDataOverride?.commentsEnabled ?? CONFIG.DEFAULTS.PUBLISH.COMMENTS_ENABLED, downloadEnabled: importDataOverride?.downloadEnabled ?? CONFIG.DEFAULTS.PUBLISH.DOWNLOAD_ENABLED, - waitTranscoding: importDataOverride?.waitTranscoding || false, + waitTranscoding: importDataOverride?.waitTranscoding ?? true, state: VideoState.TO_IMPORT, nsfw: importDataOverride?.nsfw || importData.nsfw || false, description: importDataOverride?.description || importData.description, @@ -125,7 +125,7 @@ async function buildVideoFromImport ({ channelId, importData, importDataOverride channelId, originallyPublishedAt: importDataOverride?.originallyPublishedAt ? new Date(importDataOverride?.originallyPublishedAt) - : importData.originallyPublishedAt + : importData.originallyPublishedAtWithoutTime } videoData = await Hooks.wrapObject(