aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared/shared-main/video-caption
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-11-02 11:50:03 +0100
committerChocobozzz <me@florianbigard.com>2021-11-02 11:50:03 +0100
commit231ff4af3bdb864d6bc66e487b12275e5f1fb44f (patch)
treeb8537a67a26d86dcf68eb871ada8e17e286517e2 /client/src/app/shared/shared-main/video-caption
parent61f85385bbd281e34573e250b2625860fd6a1408 (diff)
downloadPeerTube-231ff4af3bdb864d6bc66e487b12275e5f1fb44f.tar.gz
PeerTube-231ff4af3bdb864d6bc66e487b12275e5f1fb44f.tar.zst
PeerTube-231ff4af3bdb864d6bc66e487b12275e5f1fb44f.zip
Add ability to exclude muted accounts
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.ts6
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))