Import in private, and then set the chosen privacy
This commit is contained in:
parent
1ef7f32304
commit
d487a997c8
|
@ -55,8 +55,10 @@ export class VideoGoLiveComponent extends VideoSend implements OnInit, CanCompon
|
||||||
}
|
}
|
||||||
|
|
||||||
goLive () {
|
goLive () {
|
||||||
|
const name = 'Live'
|
||||||
|
|
||||||
const video: LiveVideoCreate = {
|
const video: LiveVideoCreate = {
|
||||||
name: 'Live',
|
name,
|
||||||
privacy: VideoPrivacy.PRIVATE,
|
privacy: VideoPrivacy.PRIVATE,
|
||||||
nsfw: this.serverConfig.instance.isNSFW,
|
nsfw: this.serverConfig.instance.isNSFW,
|
||||||
waitTranscoding: true,
|
waitTranscoding: true,
|
||||||
|
|
|
@ -76,7 +76,7 @@ export class VideoImportTorrentComponent extends VideoSend implements OnInit, Ca
|
||||||
this.isImportingVideo = true
|
this.isImportingVideo = true
|
||||||
|
|
||||||
const videoUpdate: VideoUpdate = {
|
const videoUpdate: VideoUpdate = {
|
||||||
privacy: this.firstStepPrivacyId,
|
privacy: VideoPrivacy.PRIVATE,
|
||||||
waitTranscoding: false,
|
waitTranscoding: false,
|
||||||
commentsEnabled: true,
|
commentsEnabled: true,
|
||||||
downloadEnabled: true,
|
downloadEnabled: true,
|
||||||
|
@ -95,6 +95,7 @@ export class VideoImportTorrentComponent extends VideoSend implements OnInit, Ca
|
||||||
this.video = new VideoEdit(Object.assign(res.video, {
|
this.video = new VideoEdit(Object.assign(res.video, {
|
||||||
commentsEnabled: videoUpdate.commentsEnabled,
|
commentsEnabled: videoUpdate.commentsEnabled,
|
||||||
downloadEnabled: videoUpdate.downloadEnabled,
|
downloadEnabled: videoUpdate.downloadEnabled,
|
||||||
|
privacy: { id: this.firstStepPrivacyId },
|
||||||
support: null,
|
support: null,
|
||||||
thumbnailUrl: null,
|
thumbnailUrl: null,
|
||||||
previewUrl: null
|
previewUrl: null
|
||||||
|
|
|
@ -63,7 +63,7 @@ export class VideoImportUrlComponent extends VideoSend implements OnInit, CanCom
|
||||||
this.isImportingVideo = true
|
this.isImportingVideo = true
|
||||||
|
|
||||||
const videoUpdate: VideoUpdate = {
|
const videoUpdate: VideoUpdate = {
|
||||||
privacy: this.firstStepPrivacyId,
|
privacy: VideoPrivacy.PRIVATE,
|
||||||
waitTranscoding: false,
|
waitTranscoding: false,
|
||||||
commentsEnabled: true,
|
commentsEnabled: true,
|
||||||
downloadEnabled: true,
|
downloadEnabled: true,
|
||||||
|
@ -103,6 +103,7 @@ export class VideoImportUrlComponent extends VideoSend implements OnInit, CanCom
|
||||||
this.video = new VideoEdit(Object.assign(video, {
|
this.video = new VideoEdit(Object.assign(video, {
|
||||||
commentsEnabled: videoUpdate.commentsEnabled,
|
commentsEnabled: videoUpdate.commentsEnabled,
|
||||||
downloadEnabled: videoUpdate.downloadEnabled,
|
downloadEnabled: videoUpdate.downloadEnabled,
|
||||||
|
privacy: { id: this.firstStepPrivacyId },
|
||||||
support: null,
|
support: null,
|
||||||
thumbnailUrl,
|
thumbnailUrl,
|
||||||
previewUrl
|
previewUrl
|
||||||
|
|
Loading…
Reference in New Issue