aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/server-commands/videos
diff options
context:
space:
mode:
Diffstat (limited to 'shared/server-commands/videos')
-rw-r--r--shared/server-commands/videos/live-command.ts2
-rw-r--r--shared/server-commands/videos/streaming-playlists-command.ts4
2 files changed, 4 insertions, 2 deletions
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 {
121 permanentLive: boolean 121 permanentLive: boolean
122 privacy?: VideoPrivacy 122 privacy?: VideoPrivacy
123 }) { 123 }) {
124 const { saveReplay, permanentLive, privacy } = options 124 const { saveReplay, permanentLive, privacy = VideoPrivacy.PUBLIC } = options
125 125
126 const { uuid } = await this.create({ 126 const { uuid } = await this.create({
127 ...options, 127 ...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 {
13 13
14 withRetry?: boolean // default false 14 withRetry?: boolean // default false
15 currentRetry?: number 15 currentRetry?: number
16 }) { 16 }): Promise<string> {
17 const { videoFileToken, reinjectVideoFileToken, withRetry, currentRetry = 1 } = options 17 const { videoFileToken, reinjectVideoFileToken, withRetry, currentRetry = 1 } = options
18 18
19 try { 19 try {
@@ -54,6 +54,7 @@ export class StreamingPlaylistsCommand extends AbstractCommand {
54 url: options.url, 54 url: options.url,
55 range: options.range, 55 range: options.range,
56 implicitToken: false, 56 implicitToken: false,
57 responseType: 'application/octet-stream',
57 defaultExpectedStatus: HttpStatusCode.OK_200 58 defaultExpectedStatus: HttpStatusCode.OK_200
58 })) 59 }))
59 } 60 }
@@ -65,6 +66,7 @@ export class StreamingPlaylistsCommand extends AbstractCommand {
65 ...options, 66 ...options,
66 67
67 url: options.url, 68 url: options.url,
69 contentType: 'application/json',
68 implicitToken: false, 70 implicitToken: false,
69 defaultExpectedStatus: HttpStatusCode.OK_200 71 defaultExpectedStatus: HttpStatusCode.OK_200
70 })) 72 }))