From 16ccb43767c45e74877ab7beaa4adb61a404c128 Mon Sep 17 00:00:00 2001 From: Wicklow Date: Thu, 23 Feb 2023 15:39:09 +0100 Subject: Fix filters on playlists --- shared/server-commands/videos/playlists-command.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'shared/server-commands') 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 { 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>({ ...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>({ ...options, -- cgit v1.2.3