diff options
author | Chocobozzz <me@florianbigard.com> | 2019-12-30 14:31:39 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2019-12-30 14:31:39 +0100 |
commit | cca1e13b96799377f19bcc95110fbf76ff741e20 (patch) | |
tree | 785dfaa81d1eb4e568a038161611126f7704af0b /shared/extra-utils/videos | |
parent | 1a393a7e23cb20afa951d4ef77084487629df58e (diff) | |
download | PeerTube-cca1e13b96799377f19bcc95110fbf76ff741e20.tar.gz PeerTube-cca1e13b96799377f19bcc95110fbf76ff741e20.tar.zst PeerTube-cca1e13b96799377f19bcc95110fbf76ff741e20.zip |
Add test to search in my videos
Diffstat (limited to 'shared/extra-utils/videos')
-rw-r--r-- | shared/extra-utils/videos/videos.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/shared/extra-utils/videos/videos.ts b/shared/extra-utils/videos/videos.ts index 1fcc949da..84b79b253 100644 --- a/shared/extra-utils/videos/videos.ts +++ b/shared/extra-utils/videos/videos.ts | |||
@@ -161,13 +161,14 @@ function getLocalVideos (url: string) { | |||
161 | .expect('Content-Type', /json/) | 161 | .expect('Content-Type', /json/) |
162 | } | 162 | } |
163 | 163 | ||
164 | function getMyVideos (url: string, accessToken: string, start: number, count: number, sort?: string) { | 164 | function getMyVideos (url: string, accessToken: string, start: number, count: number, sort?: string, search?: string) { |
165 | const path = '/api/v1/users/me/videos' | 165 | const path = '/api/v1/users/me/videos' |
166 | 166 | ||
167 | const req = request(url) | 167 | const req = request(url) |
168 | .get(path) | 168 | .get(path) |
169 | .query({ start: start }) | 169 | .query({ start: start }) |
170 | .query({ count: count }) | 170 | .query({ count: count }) |
171 | .query({ search: search }) | ||
171 | 172 | ||
172 | if (sort) req.query({ sort }) | 173 | if (sort) req.query({ sort }) |
173 | 174 | ||