aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/server-commands
diff options
context:
space:
mode:
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,