diff options
Diffstat (limited to 'shared/server-commands/videos/streaming-playlists-command.ts')
-rw-r--r-- | shared/server-commands/videos/streaming-playlists-command.ts | 4 |
1 files changed, 3 insertions, 1 deletions
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 | })) |