aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/extra-utils/videos/videos-command.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-10-20 09:05:43 +0200
committerChocobozzz <me@florianbigard.com>2021-10-20 09:25:44 +0200
commit978c87e7f58b6673fe60f04f1767bc9e02ea4936 (patch)
treee7d48735d4099fec8c7732f33e7dadb09c0eac80 /shared/extra-utils/videos/videos-command.ts
parent7e76cc380040e40a2292a9dc825f037c9b538030 (diff)
downloadPeerTube-978c87e7f58b6673fe60f04f1767bc9e02ea4936.tar.gz
PeerTube-978c87e7f58b6673fe60f04f1767bc9e02ea4936.tar.zst
PeerTube-978c87e7f58b6673fe60f04f1767bc9e02ea4936.zip
Add channel filters for my videos/followers
Diffstat (limited to 'shared/extra-utils/videos/videos-command.ts')
-rw-r--r--shared/extra-utils/videos/videos-command.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/shared/extra-utils/videos/videos-command.ts b/shared/extra-utils/videos/videos-command.ts
index 99f56a34c..c1a9ec806 100644
--- a/shared/extra-utils/videos/videos-command.ts
+++ b/shared/extra-utils/videos/videos-command.ts
@@ -207,6 +207,7 @@ export class VideosCommand extends AbstractCommand {
207 sort?: string 207 sort?: string
208 search?: string 208 search?: string
209 isLive?: boolean 209 isLive?: boolean
210 channelId?: number
210 } = {}) { 211 } = {}) {
211 const path = '/api/v1/users/me/videos' 212 const path = '/api/v1/users/me/videos'
212 213
@@ -214,7 +215,7 @@ export class VideosCommand extends AbstractCommand {
214 ...options, 215 ...options,
215 216
216 path, 217 path,
217 query: pick(options, [ 'start', 'count', 'sort', 'search', 'isLive' ]), 218 query: pick(options, [ 'start', 'count', 'sort', 'search', 'isLive', 'channelId' ]),
218 implicitToken: true, 219 implicitToken: true,
219 defaultExpectedStatus: HttpStatusCode.OK_200 220 defaultExpectedStatus: HttpStatusCode.OK_200
220 }) 221 })