diff options
Diffstat (limited to 'client/src/app/shared/shared-main/video-channel/video-channel.service.ts')
-rw-r--r-- | client/src/app/shared/shared-main/video-channel/video-channel.service.ts | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/client/src/app/shared/shared-main/video-channel/video-channel.service.ts b/client/src/app/shared/shared-main/video-channel/video-channel.service.ts index 480d250fb..fa97025ac 100644 --- a/client/src/app/shared/shared-main/video-channel/video-channel.service.ts +++ b/client/src/app/shared/shared-main/video-channel/video-channel.service.ts | |||
@@ -95,4 +95,10 @@ export class VideoChannelService { | |||
95 | return this.authHttp.delete(VideoChannelService.BASE_VIDEO_CHANNEL_URL + videoChannel.nameWithHost) | 95 | return this.authHttp.delete(VideoChannelService.BASE_VIDEO_CHANNEL_URL + videoChannel.nameWithHost) |
96 | .pipe(catchError(err => this.restExtractor.handleError(err))) | 96 | .pipe(catchError(err => this.restExtractor.handleError(err))) |
97 | } | 97 | } |
98 | |||
99 | importVideos (videoChannelName: string, externalChannelUrl: string) { | ||
100 | const path = VideoChannelService.BASE_VIDEO_CHANNEL_URL + videoChannelName + '/import-videos' | ||
101 | return this.authHttp.post(path, { externalChannelUrl }) | ||
102 | .pipe(catchError(err => this.restExtractor.handleError(err))) | ||
103 | } | ||
98 | } | 104 | } |