1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-04 02:09:37 +02:00

Fix filters on playlists

This commit is contained in:
Wicklow 2023-02-23 15:39:09 +01:00 committed by Chocobozzz
parent 918ba713e4
commit 16ccb43767
5 changed files with 126 additions and 11 deletions

View file

@ -24,9 +24,10 @@ export class PlaylistsCommand extends AbstractCommand {
start?: number
count?: number
sort?: string
playlistType?: VideoPlaylistType
}) {
const path = '/api/v1/video-playlists'
const query = pick(options, [ 'start', 'count', 'sort' ])
const query = pick(options, [ 'start', 'count', 'sort', 'playlistType' ])
return this.getRequestBody<ResultList<VideoPlaylist>>({
...options,
@ -43,9 +44,10 @@ export class PlaylistsCommand extends AbstractCommand {
start?: number
count?: number
sort?: string
playlistType?: VideoPlaylistType
}) {
const path = '/api/v1/video-channels/' + options.handle + '/video-playlists'
const query = pick(options, [ 'start', 'count', 'sort' ])
const query = pick(options, [ 'start', 'count', 'sort', 'playlistType' ])
return this.getRequestBody<ResultList<VideoPlaylist>>({
...options,