diff options
Diffstat (limited to 'client/src/app/shared/video')
-rw-r--r-- | client/src/app/shared/video/video.service.ts | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/client/src/app/shared/video/video.service.ts b/client/src/app/shared/video/video.service.ts index 1a934c8e2..558db9543 100644 --- a/client/src/app/shared/video/video.service.ts +++ b/client/src/app/shared/video/video.service.ts | |||
@@ -4,14 +4,7 @@ import { Injectable } from '@angular/core' | |||
4 | import { Observable } from 'rxjs' | 4 | import { Observable } from 'rxjs' |
5 | import { Video as VideoServerModel, VideoDetails as VideoDetailsServerModel } from '../../../../../shared' | 5 | import { Video as VideoServerModel, VideoDetails as VideoDetailsServerModel } from '../../../../../shared' |
6 | import { ResultList } from '../../../../../shared/models/result-list.model' | 6 | import { ResultList } from '../../../../../shared/models/result-list.model' |
7 | import { | 7 | import { UserVideoRate, UserVideoRateUpdate, VideoFilter, VideoRateType, VideoUpdate } from '../../../../../shared/models/videos' |
8 | UserVideoRate, | ||
9 | UserVideoRateUpdate, | ||
10 | VideoChannel, | ||
11 | VideoFilter, | ||
12 | VideoRateType, | ||
13 | VideoUpdate | ||
14 | } from '../../../../../shared/models/videos' | ||
15 | import { FeedFormat } from '../../../../../shared/models/feeds/feed-format.enum' | 8 | import { FeedFormat } from '../../../../../shared/models/feeds/feed-format.enum' |
16 | import { environment } from '../../../environments/environment' | 9 | import { environment } from '../../../environments/environment' |
17 | import { ComponentPagination } from '../rest/component-pagination.model' | 10 | import { ComponentPagination } from '../rest/component-pagination.model' |
@@ -28,6 +21,7 @@ import { AccountService } from '@app/shared/account/account.service' | |||
28 | import { VideoChannelService } from '@app/shared/video-channel/video-channel.service' | 21 | import { VideoChannelService } from '@app/shared/video-channel/video-channel.service' |
29 | import { ServerService } from '@app/core' | 22 | import { ServerService } from '@app/core' |
30 | import { UserSubscriptionService } from '@app/shared/user-subscription' | 23 | import { UserSubscriptionService } from '@app/shared/user-subscription' |
24 | import { VideoChannel } from '@app/shared/video-channel/video-channel.model' | ||
31 | 25 | ||
32 | @Injectable() | 26 | @Injectable() |
33 | export class VideoService { | 27 | export class VideoService { |
@@ -151,7 +145,7 @@ export class VideoService { | |||
151 | params = this.restService.addRestGetParams(params, pagination, sort) | 145 | params = this.restService.addRestGetParams(params, pagination, sort) |
152 | 146 | ||
153 | return this.authHttp | 147 | return this.authHttp |
154 | .get<ResultList<Video>>(VideoChannelService.BASE_VIDEO_CHANNEL_URL + videoChannel.name + '/videos', { params }) | 148 | .get<ResultList<Video>>(VideoChannelService.BASE_VIDEO_CHANNEL_URL + videoChannel.nameWithHost + '/videos', { params }) |
155 | .pipe( | 149 | .pipe( |
156 | switchMap(res => this.extractVideos(res)), | 150 | switchMap(res => this.extractVideos(res)), |
157 | catchError(err => this.restExtractor.handleError(err)) | 151 | catchError(err => this.restExtractor.handleError(err)) |