aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/extra-utils
diff options
context:
space:
mode:
Diffstat (limited to 'shared/extra-utils')
-rw-r--r--shared/extra-utils/videos/videos.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/shared/extra-utils/videos/videos.ts b/shared/extra-utils/videos/videos.ts
index c5de15552..9dec12703 100644
--- a/shared/extra-utils/videos/videos.ts
+++ b/shared/extra-utils/videos/videos.ts
@@ -248,7 +248,7 @@ function getPlaylistVideos (
248 }) 248 })
249} 249}
250 250
251function getVideosListPagination (url: string, start: number, count: number, sort?: string) { 251function getVideosListPagination (url: string, start: number, count: number, sort?: string, skipCount?: boolean) {
252 const path = '/api/v1/videos' 252 const path = '/api/v1/videos'
253 253
254 const req = request(url) 254 const req = request(url)
@@ -257,6 +257,7 @@ function getVideosListPagination (url: string, start: number, count: number, sor
257 .query({ count: count }) 257 .query({ count: count })
258 258
259 if (sort) req.query({ sort }) 259 if (sort) req.query({ sort })
260 if (skipCount) req.query({ skipCount })
260 261
261 return req.set('Accept', 'application/json') 262 return req.set('Accept', 'application/json')
262 .expect(200) 263 .expect(200)