aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/extra-utils
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-06-11 10:39:30 +0200
committerChocobozzz <me@florianbigard.com>2019-06-11 10:39:30 +0200
commitfc8c024a1b1b1e439ef8f5b34513033920852b82 (patch)
tree8ed5c2745cc4997c822eb62bf2e5047a6938262d /shared/extra-utils
parent4c7f7761362224bb19573faa485b16a40eab0bc4 (diff)
downloadPeerTube-fc8c024a1b1b1e439ef8f5b34513033920852b82.tar.gz
PeerTube-fc8c024a1b1b1e439ef8f5b34513033920852b82.tar.zst
PeerTube-fc8c024a1b1b1e439ef8f5b34513033920852b82.zip
Fix upload script
Diffstat (limited to 'shared/extra-utils')
-rw-r--r--shared/extra-utils/videos/videos.ts5
1 files changed, 4 insertions, 1 deletions
diff --git a/shared/extra-utils/videos/videos.ts b/shared/extra-utils/videos/videos.ts
index debaaf9a7..c78563232 100644
--- a/shared/extra-utils/videos/videos.ts
+++ b/shared/extra-utils/videos/videos.ts
@@ -355,7 +355,6 @@ async function uploadVideo (url: string, accessToken: string, videoAttributesArg
355 .set('Accept', 'application/json') 355 .set('Accept', 'application/json')
356 .set('Authorization', 'Bearer ' + accessToken) 356 .set('Authorization', 'Bearer ' + accessToken)
357 .field('name', attributes.name) 357 .field('name', attributes.name)
358 .field('support', attributes.support)
359 .field('nsfw', JSON.stringify(attributes.nsfw)) 358 .field('nsfw', JSON.stringify(attributes.nsfw))
360 .field('commentsEnabled', JSON.stringify(attributes.commentsEnabled)) 359 .field('commentsEnabled', JSON.stringify(attributes.commentsEnabled))
361 .field('downloadEnabled', JSON.stringify(attributes.downloadEnabled)) 360 .field('downloadEnabled', JSON.stringify(attributes.downloadEnabled))
@@ -363,6 +362,10 @@ async function uploadVideo (url: string, accessToken: string, videoAttributesArg
363 .field('privacy', attributes.privacy.toString()) 362 .field('privacy', attributes.privacy.toString())
364 .field('channelId', attributes.channelId) 363 .field('channelId', attributes.channelId)
365 364
365 if (attributes.support !== undefined) {
366 req.field('support', attributes.support)
367 }
368
366 if (attributes.description !== undefined) { 369 if (attributes.description !== undefined) {
367 req.field('description', attributes.description) 370 req.field('description', attributes.description)
368 } 371 }