diff options
author | Chocobozzz <me@florianbigard.com> | 2020-01-08 14:40:08 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2020-01-08 14:40:08 +0100 |
commit | 440d39c52d4efb878b6a2e21584d6b8f52072f27 (patch) | |
tree | 19ffd2dd545e125daf89c230e33d15f7827d10f7 /client/src/app/shared/video-playlist/video-playlist.service.ts | |
parent | fe98765624cdd6695739bda719fcb726b71c2b2a (diff) | |
download | PeerTube-440d39c52d4efb878b6a2e21584d6b8f52072f27.tar.gz PeerTube-440d39c52d4efb878b6a2e21584d6b8f52072f27.tar.zst PeerTube-440d39c52d4efb878b6a2e21584d6b8f52072f27.zip |
Skip videos count on client if we don't use it
Diffstat (limited to 'client/src/app/shared/video-playlist/video-playlist.service.ts')
-rw-r--r-- | client/src/app/shared/video-playlist/video-playlist.service.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/client/src/app/shared/video-playlist/video-playlist.service.ts b/client/src/app/shared/video-playlist/video-playlist.service.ts index 7eddf81e1..1ec9315ef 100644 --- a/client/src/app/shared/video-playlist/video-playlist.service.ts +++ b/client/src/app/shared/video-playlist/video-playlist.service.ts | |||
@@ -18,7 +18,7 @@ import { Account } from '@app/shared/account/account.model' | |||
18 | import { RestService } from '@app/shared/rest' | 18 | import { RestService } from '@app/shared/rest' |
19 | import { VideoExistInPlaylist, VideosExistInPlaylists } from '@shared/models/videos/playlist/video-exist-in-playlist.model' | 19 | import { VideoExistInPlaylist, VideosExistInPlaylists } from '@shared/models/videos/playlist/video-exist-in-playlist.model' |
20 | import { VideoPlaylistReorder } from '@shared/models/videos/playlist/video-playlist-reorder.model' | 20 | import { VideoPlaylistReorder } from '@shared/models/videos/playlist/video-playlist-reorder.model' |
21 | import { ComponentPagination } from '@app/shared/rest/component-pagination.model' | 21 | import { ComponentPaginationLight } from '@app/shared/rest/component-pagination.model' |
22 | import { VideoPlaylistElement as ServerVideoPlaylistElement } from '@shared/models/videos/playlist/video-playlist-element.model' | 22 | import { VideoPlaylistElement as ServerVideoPlaylistElement } from '@shared/models/videos/playlist/video-playlist-element.model' |
23 | import { VideoPlaylistElement } from '@app/shared/video-playlist/video-playlist-element.model' | 23 | import { VideoPlaylistElement } from '@app/shared/video-playlist/video-playlist-element.model' |
24 | import { uniq } from 'lodash-es' | 24 | import { uniq } from 'lodash-es' |
@@ -63,7 +63,7 @@ export class VideoPlaylistService { | |||
63 | ) | 63 | ) |
64 | } | 64 | } |
65 | 65 | ||
66 | listChannelPlaylists (videoChannel: VideoChannel, componentPagination: ComponentPagination): Observable<ResultList<VideoPlaylist>> { | 66 | listChannelPlaylists (videoChannel: VideoChannel, componentPagination: ComponentPaginationLight): Observable<ResultList<VideoPlaylist>> { |
67 | const url = VideoChannelService.BASE_VIDEO_CHANNEL_URL + videoChannel.nameWithHost + '/video-playlists' | 67 | const url = VideoChannelService.BASE_VIDEO_CHANNEL_URL + videoChannel.nameWithHost + '/video-playlists' |
68 | const pagination = this.restService.componentPaginationToRestPagination(componentPagination) | 68 | const pagination = this.restService.componentPaginationToRestPagination(componentPagination) |
69 | 69 | ||
@@ -90,7 +90,7 @@ export class VideoPlaylistService { | |||
90 | 90 | ||
91 | listAccountPlaylists ( | 91 | listAccountPlaylists ( |
92 | account: Account, | 92 | account: Account, |
93 | componentPagination: ComponentPagination, | 93 | componentPagination: ComponentPaginationLight, |
94 | sort: string, | 94 | sort: string, |
95 | search?: string | 95 | search?: string |
96 | ): Observable<ResultList<VideoPlaylist>> { | 96 | ): Observable<ResultList<VideoPlaylist>> { |
@@ -236,7 +236,7 @@ export class VideoPlaylistService { | |||
236 | 236 | ||
237 | getPlaylistVideos ( | 237 | getPlaylistVideos ( |
238 | videoPlaylistId: number | string, | 238 | videoPlaylistId: number | string, |
239 | componentPagination: ComponentPagination | 239 | componentPagination: ComponentPaginationLight |
240 | ): Observable<ResultList<VideoPlaylistElement>> { | 240 | ): Observable<ResultList<VideoPlaylistElement>> { |
241 | const path = VideoPlaylistService.BASE_VIDEO_PLAYLIST_URL + videoPlaylistId + '/videos' | 241 | const path = VideoPlaylistService.BASE_VIDEO_PLAYLIST_URL + videoPlaylistId + '/videos' |
242 | const pagination = this.restService.componentPaginationToRestPagination(componentPagination) | 242 | const pagination = this.restService.componentPaginationToRestPagination(componentPagination) |