From cca1e13b96799377f19bcc95110fbf76ff741e20 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 30 Dec 2019 14:31:39 +0100 Subject: Add test to search in my videos --- shared/extra-utils/videos/videos.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'shared/extra-utils/videos/videos.ts') 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) { .expect('Content-Type', /json/) } -function getMyVideos (url: string, accessToken: string, start: number, count: number, sort?: string) { +function getMyVideos (url: string, accessToken: string, start: number, count: number, sort?: string, search?: string) { const path = '/api/v1/users/me/videos' const req = request(url) .get(path) .query({ start: start }) .query({ count: count }) + .query({ search: search }) if (sort) req.query({ sort }) -- cgit v1.2.3