diff options
Diffstat (limited to 'client/src/app/videos/shared/video.service.ts')
-rw-r--r-- | client/src/app/videos/shared/video.service.ts | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/client/src/app/videos/shared/video.service.ts b/client/src/app/videos/shared/video.service.ts index ee67bc1ae..a0965e20c 100644 --- a/client/src/app/videos/shared/video.service.ts +++ b/client/src/app/videos/shared/video.service.ts | |||
@@ -150,6 +150,12 @@ export class VideoService { | |||
150 | .catch((res) => this.restExtractor.handleError(res)); | 150 | .catch((res) => this.restExtractor.handleError(res)); |
151 | } | 151 | } |
152 | 152 | ||
153 | blacklistVideo(id: string) { | ||
154 | return this.authHttp.post(VideoService.BASE_VIDEO_URL + id + '/blacklist', {}) | ||
155 | .map(this.restExtractor.extractDataBool) | ||
156 | .catch((res) => this.restExtractor.handleError(res)); | ||
157 | } | ||
158 | |||
153 | private setVideoRate(id: string, rateType: RateType) { | 159 | private setVideoRate(id: string, rateType: RateType) { |
154 | const url = VideoService.BASE_VIDEO_URL + id + '/rate'; | 160 | const url = VideoService.BASE_VIDEO_URL + id + '/rate'; |
155 | const body = { | 161 | const body = { |