aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/server-commands
diff options
context:
space:
mode:
authorWicklow <wicklow@framasoft.org>2023-02-23 15:39:09 +0100
committerChocobozzz <chocobozzz@cpy.re>2023-02-23 16:07:44 +0100
commit16ccb43767c45e74877ab7beaa4adb61a404c128 (patch)
treed61704e49131c6233cbc550b71f27212c1516db4 /shared/server-commands
parent918ba713e4e8014d7b995e61df0ecada934c6361 (diff)
downloadPeerTube-16ccb43767c45e74877ab7beaa4adb61a404c128.tar.gz
PeerTube-16ccb43767c45e74877ab7beaa4adb61a404c128.tar.zst
PeerTube-16ccb43767c45e74877ab7beaa4adb61a404c128.zip
Fix filters on playlists
Diffstat (limited to 'shared/server-commands')
-rw-r--r--shared/server-commands/videos/playlists-command.ts6
1 files changed, 4 insertions, 2 deletions
diff --git a/shared/server-commands/videos/playlists-command.ts b/shared/server-commands/videos/playlists-command.ts
index 516da0bf7..da3bef7b0 100644
--- a/shared/server-commands/videos/playlists-command.ts
+++ b/shared/server-commands/videos/playlists-command.ts
@@ -24,9 +24,10 @@ export class PlaylistsCommand extends AbstractCommand {
24 start?: number 24 start?: number
25 count?: number 25 count?: number
26 sort?: string 26 sort?: string
27 playlistType?: VideoPlaylistType
27 }) { 28 }) {
28 const path = '/api/v1/video-playlists' 29 const path = '/api/v1/video-playlists'
29 const query = pick(options, [ 'start', 'count', 'sort' ]) 30 const query = pick(options, [ 'start', 'count', 'sort', 'playlistType' ])
30 31
31 return this.getRequestBody<ResultList<VideoPlaylist>>({ 32 return this.getRequestBody<ResultList<VideoPlaylist>>({
32 ...options, 33 ...options,
@@ -43,9 +44,10 @@ export class PlaylistsCommand extends AbstractCommand {
43 start?: number 44 start?: number
44 count?: number 45 count?: number
45 sort?: string 46 sort?: string
47 playlistType?: VideoPlaylistType
46 }) { 48 }) {
47 const path = '/api/v1/video-channels/' + options.handle + '/video-playlists' 49 const path = '/api/v1/video-channels/' + options.handle + '/video-playlists'
48 const query = pick(options, [ 'start', 'count', 'sort' ]) 50 const query = pick(options, [ 'start', 'count', 'sort', 'playlistType' ])
49 51
50 return this.getRequestBody<ResultList<VideoPlaylist>>({ 52 return this.getRequestBody<ResultList<VideoPlaylist>>({
51 ...options, 53 ...options,