aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared/video-channel
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app/shared/video-channel')
-rw-r--r--client/src/app/shared/video-channel/video-channel.service.ts10
1 files changed, 5 insertions, 5 deletions
diff --git a/client/src/app/shared/video-channel/video-channel.service.ts b/client/src/app/shared/video-channel/video-channel.service.ts
index 46b121790..c94411146 100644
--- a/client/src/app/shared/video-channel/video-channel.service.ts
+++ b/client/src/app/shared/video-channel/video-channel.service.ts
@@ -17,11 +17,6 @@ export class VideoChannelService {
17 17
18 videoChannelLoaded = new ReplaySubject<VideoChannel>(1) 18 videoChannelLoaded = new ReplaySubject<VideoChannel>(1)
19 19
20 constructor (
21 private authHttp: HttpClient,
22 private restExtractor: RestExtractor
23 ) {}
24
25 static extractVideoChannels (result: ResultList<VideoChannelServer>) { 20 static extractVideoChannels (result: ResultList<VideoChannelServer>) {
26 const videoChannels: VideoChannel[] = [] 21 const videoChannels: VideoChannel[] = []
27 22
@@ -32,6 +27,11 @@ export class VideoChannelService {
32 return { data: videoChannels, total: result.total } 27 return { data: videoChannels, total: result.total }
33 } 28 }
34 29
30 constructor (
31 private authHttp: HttpClient,
32 private restExtractor: RestExtractor
33 ) { }
34
35 getVideoChannel (videoChannelName: string) { 35 getVideoChannel (videoChannelName: string) {
36 return this.authHttp.get<VideoChannel>(VideoChannelService.BASE_VIDEO_CHANNEL_URL + videoChannelName) 36 return this.authHttp.get<VideoChannel>(VideoChannelService.BASE_VIDEO_CHANNEL_URL + videoChannelName)
37 .pipe( 37 .pipe(