diff options
Diffstat (limited to 'client/src/app/shared/shared-main/video-caption')
-rw-r--r-- | client/src/app/shared/shared-main/video-caption/video-caption.service.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/client/src/app/shared/shared-main/video-caption/video-caption.service.ts b/client/src/app/shared/shared-main/video-caption/video-caption.service.ts index 283c63f98..29d6d0f4c 100644 --- a/client/src/app/shared/shared-main/video-caption/video-caption.service.ts +++ b/client/src/app/shared/shared-main/video-caption/video-caption.service.ts | |||
@@ -18,7 +18,7 @@ export class VideoCaptionService { | |||
18 | ) {} | 18 | ) {} |
19 | 19 | ||
20 | listCaptions (videoId: number | string): Observable<ResultList<VideoCaption>> { | 20 | listCaptions (videoId: number | string): Observable<ResultList<VideoCaption>> { |
21 | return this.authHttp.get<ResultList<VideoCaption>>(VideoService.BASE_VIDEO_URL + videoId + '/captions') | 21 | return this.authHttp.get<ResultList<VideoCaption>>(`${VideoService.BASE_VIDEO_URL}/${videoId}/captions`) |
22 | .pipe( | 22 | .pipe( |
23 | switchMap(captionsResult => { | 23 | switchMap(captionsResult => { |
24 | return this.serverService.getServerLocale() | 24 | return this.serverService.getServerLocale() |
@@ -41,7 +41,7 @@ export class VideoCaptionService { | |||
41 | } | 41 | } |
42 | 42 | ||
43 | removeCaption (videoId: number | string, language: string) { | 43 | removeCaption (videoId: number | string, language: string) { |
44 | return this.authHttp.delete(VideoService.BASE_VIDEO_URL + videoId + '/captions/' + language) | 44 | return this.authHttp.delete(`${VideoService.BASE_VIDEO_URL}/${videoId}/captions/${language}`) |
45 | .pipe( | 45 | .pipe( |
46 | map(this.restExtractor.extractDataBool), | 46 | map(this.restExtractor.extractDataBool), |
47 | catchError(res => this.restExtractor.handleError(res)) | 47 | catchError(res => this.restExtractor.handleError(res)) |
@@ -52,7 +52,7 @@ export class VideoCaptionService { | |||
52 | const body = { captionfile } | 52 | const body = { captionfile } |
53 | const data = objectToFormData(body) | 53 | const data = objectToFormData(body) |
54 | 54 | ||
55 | return this.authHttp.put(VideoService.BASE_VIDEO_URL + videoId + '/captions/' + language, data) | 55 | return this.authHttp.put(`${VideoService.BASE_VIDEO_URL}/${videoId}/captions/${language}`, data) |
56 | .pipe( | 56 | .pipe( |
57 | map(this.restExtractor.extractDataBool), | 57 | map(this.restExtractor.extractDataBool), |
58 | catchError(res => this.restExtractor.handleError(res)) | 58 | catchError(res => this.restExtractor.handleError(res)) |