X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2F%2Bvideos%2F%2Bvideo-edit%2Fvideo-update.resolver.ts;h=524ceae109ff30e52ca614056054c81d7a0a5483;hb=a2fb5fb8b1007e3ce82e707917f5d9a37374e99b;hp=82dae5c1cef83d36ae3d51613855579aef2afe05;hpb=28dca0a2211524bbf3ad17666c607eb6325763b8;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/app/+videos/+video-edit/video-update.resolver.ts b/client/src/app/+videos/+video-edit/video-update.resolver.ts index 82dae5c1c..524ceae10 100644 --- a/client/src/app/+videos/+video-edit/video-update.resolver.ts +++ b/client/src/app/+videos/+video-edit/video-update.resolver.ts @@ -23,7 +23,8 @@ export class VideoUpdateResolver implements Resolve { return this.videoService.getVideo({ videoId: uuid }) .pipe( switchMap(video => forkJoin(this.buildVideoObservables(video))), - map(([ video, videoChannels, videoCaptions, liveVideo ]) => ({ video, videoChannels, videoCaptions, liveVideo })) + map(([ video, videoSource, videoChannels, videoCaptions, liveVideo ]) => + ({ video, videoChannels, videoCaptions, videoSource, liveVideo })) ) } @@ -33,10 +34,12 @@ export class VideoUpdateResolver implements Resolve { .loadCompleteDescription(video.descriptionPath) .pipe(map(description => Object.assign(video, { description }))), + this.videoService.getSource(video.id), + listUserChannelsForSelect(this.authService), this.videoCaptionService - .listCaptions(video.id) + .listCaptions(video.uuid) .pipe( map(result => result.data) ),