From d102de1b38f2877463529c3b27bd35ffef4fd8bf Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 21 Apr 2023 15:00:01 +0200 Subject: Add runner server tests --- shared/server-commands/videos/live-command.ts | 2 +- shared/server-commands/videos/streaming-playlists-command.ts | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'shared/server-commands/videos') diff --git a/shared/server-commands/videos/live-command.ts b/shared/server-commands/videos/live-command.ts index 3273e3a8f..dc3c5a86e 100644 --- a/shared/server-commands/videos/live-command.ts +++ b/shared/server-commands/videos/live-command.ts @@ -121,7 +121,7 @@ export class LiveCommand extends AbstractCommand { permanentLive: boolean privacy?: VideoPrivacy }) { - const { saveReplay, permanentLive, privacy } = options + const { saveReplay, permanentLive, privacy = VideoPrivacy.PUBLIC } = options const { uuid } = await this.create({ ...options, diff --git a/shared/server-commands/videos/streaming-playlists-command.ts b/shared/server-commands/videos/streaming-playlists-command.ts index 26ab2735f..7b92dcc0a 100644 --- a/shared/server-commands/videos/streaming-playlists-command.ts +++ b/shared/server-commands/videos/streaming-playlists-command.ts @@ -13,7 +13,7 @@ export class StreamingPlaylistsCommand extends AbstractCommand { withRetry?: boolean // default false currentRetry?: number - }) { + }): Promise { const { videoFileToken, reinjectVideoFileToken, withRetry, currentRetry = 1 } = options try { @@ -54,6 +54,7 @@ export class StreamingPlaylistsCommand extends AbstractCommand { url: options.url, range: options.range, implicitToken: false, + responseType: 'application/octet-stream', defaultExpectedStatus: HttpStatusCode.OK_200 })) } @@ -65,6 +66,7 @@ export class StreamingPlaylistsCommand extends AbstractCommand { ...options, url: options.url, + contentType: 'application/json', implicitToken: false, defaultExpectedStatus: HttpStatusCode.OK_200 })) -- cgit v1.2.3