diff options
author | Chocobozzz <me@florianbigard.com> | 2022-06-24 14:47:32 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-06-24 14:47:32 +0200 |
commit | 7c07259ae5c7b636d52b8ec103a19d31c2f5b755 (patch) | |
tree | 30e85294a11ce8356dbcc31b0f9df91a18086306 /client/src/app/shared/shared-main/video-caption | |
parent | 978489b64c7b329cbfde5ffd7fe806702a3490c7 (diff) | |
download | PeerTube-7c07259ae5c7b636d52b8ec103a19d31c2f5b755.tar.gz PeerTube-7c07259ae5c7b636d52b8ec103a19d31c2f5b755.tar.zst PeerTube-7c07259ae5c7b636d52b8ec103a19d31c2f5b755.zip |
Fix fetching unlisted video in client
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 | 2 |
1 files changed, 1 insertions, 1 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 00ebe5bc6..0f3afd116 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 | private restExtractor: RestExtractor | 18 | private restExtractor: RestExtractor |
19 | ) {} | 19 | ) {} |
20 | 20 | ||
21 | listCaptions (videoId: number | string): Observable<ResultList<VideoCaption>> { | 21 | listCaptions (videoId: string): Observable<ResultList<VideoCaption>> { |
22 | return this.authHttp.get<ResultList<VideoCaption>>(`${VideoService.BASE_VIDEO_URL}/${videoId}/captions`) | 22 | return this.authHttp.get<ResultList<VideoCaption>>(`${VideoService.BASE_VIDEO_URL}/${videoId}/captions`) |
23 | .pipe( | 23 | .pipe( |
24 | switchMap(captionsResult => { | 24 | switchMap(captionsResult => { |