aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/extra-utils/search
diff options
context:
space:
mode:
Diffstat (limited to 'shared/extra-utils/search')
-rw-r--r--shared/extra-utils/search/videos.ts21
1 files changed, 0 insertions, 21 deletions
diff --git a/shared/extra-utils/search/videos.ts b/shared/extra-utils/search/videos.ts
index 5cf8d8cf0..da806e692 100644
--- a/shared/extra-utils/search/videos.ts
+++ b/shared/extra-utils/search/videos.ts
@@ -29,26 +29,6 @@ function searchVideoWithToken (url: string, search: string, token: string, query
29 .expect('Content-Type', /json/) 29 .expect('Content-Type', /json/)
30} 30}
31 31
32function searchVideoWithPagination (url: string, search: string, start: number, count: number, sort?: string) {
33 const path = '/api/v1/search/videos'
34
35 const query = {
36 start,
37 search,
38 count
39 }
40
41 const req = request(url)
42 .get(path)
43 .query(query)
44
45 if (sort) req.query({ sort })
46
47 return req.set('Accept', 'application/json')
48 .expect(200)
49 .expect('Content-Type', /json/)
50}
51
52function searchVideoWithSort (url: string, search: string, sort: string) { 32function searchVideoWithSort (url: string, search: string, sort: string) {
53 const path = '/api/v1/search/videos' 33 const path = '/api/v1/search/videos'
54 34
@@ -79,6 +59,5 @@ export {
79 searchVideo, 59 searchVideo,
80 advancedVideosSearch, 60 advancedVideosSearch,
81 searchVideoWithToken, 61 searchVideoWithToken,
82 searchVideoWithPagination,
83 searchVideoWithSort 62 searchVideoWithSort
84} 63}