]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/+videos/+video-edit/video-add-components/video-import-torrent.component.ts
Import in private, and then set the chosen privacy
[github/Chocobozzz/PeerTube.git] / client / src / app / +videos / +video-edit / video-add-components / video-import-torrent.component.ts
index 64e8879879dd2597c4ed19b9a7fc7aa3930b5726..01087e5251799d430aea64c32dc4152cfff91e0e 100644 (file)
@@ -76,7 +76,7 @@ export class VideoImportTorrentComponent extends VideoSend implements OnInit, Ca
     this.isImportingVideo = true
 
     const videoUpdate: VideoUpdate = {
-      privacy: this.firstStepPrivacyId,
+      privacy: VideoPrivacy.PRIVATE,
       waitTranscoding: false,
       commentsEnabled: true,
       downloadEnabled: true,
@@ -95,6 +95,7 @@ export class VideoImportTorrentComponent extends VideoSend implements OnInit, Ca
         this.video = new VideoEdit(Object.assign(res.video, {
           commentsEnabled: videoUpdate.commentsEnabled,
           downloadEnabled: videoUpdate.downloadEnabled,
+          privacy: { id: this.firstStepPrivacyId },
           support: null,
           thumbnailUrl: null,
           previewUrl: null
@@ -128,7 +129,7 @@ export class VideoImportTorrentComponent extends VideoSend implements OnInit, Ca
             this.isUpdatingVideo = false
             this.notifier.success($localize`Video to import updated.`)
 
-            this.router.navigate([ '/my-account', 'video-imports' ])
+            this.router.navigate([ '/my-library', 'video-imports' ])
           },
 
           err => {