X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Fmodels%2Fvideo%2Fvideo-import.ts;h=8d442b3f849940526fe5207afd157364f772dada;hb=c39e86b898370a55c147ed1958db00723b0364e4;hp=9d1f783c75e3a91d6cd647544ec13d89b15e2b0e;hpb=268eebed921ac13a9ce0f4717f4923aa24190657;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/models/video/video-import.ts b/server/models/video/video-import.ts index 9d1f783c7..8d442b3f8 100644 --- a/server/models/video/video-import.ts +++ b/server/models/video/video-import.ts @@ -146,12 +146,11 @@ export class VideoImportModel extends Model { toFormattedJSON (): VideoImport { const videoFormatOptions = { + completeDescription: true, additionalAttributes: { state: true, waitTranscoding: true, scheduledUpdate: true } } const video = this.Video - ? Object.assign(this.Video.toFormattedJSON(videoFormatOptions), { - tags: this.Video.Tags.map(t => t.name) - }) + ? Object.assign(this.Video.toFormattedJSON(videoFormatOptions), { tags: this.Video.Tags.map(t => t.name) }) : undefined return {