diff options
author | Chocobozzz <me@florianbigard.com> | 2018-08-22 11:51:39 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-08-27 09:41:54 +0200 |
commit | f6eebcb336c067e160a62020a5140d8d992ba384 (patch) | |
tree | 48fbf9c292243c9cc13beb3749eceaf61fe2baef /client/src/app/shared/video-channel | |
parent | 22a16e36f6526887ed8f5e5d3c9f9e5da0b4a8cd (diff) | |
download | PeerTube-f6eebcb336c067e160a62020a5140d8d992ba384.tar.gz PeerTube-f6eebcb336c067e160a62020a5140d8d992ba384.tar.zst PeerTube-f6eebcb336c067e160a62020a5140d8d992ba384.zip |
Add ability to search a video with an URL
Diffstat (limited to 'client/src/app/shared/video-channel')
-rw-r--r-- | client/src/app/shared/video-channel/video-channel.service.ts | 10 |
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( |