diff options
author | Chocobozzz <me@florianbigard.com> | 2023-04-21 15:00:01 +0200 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2023-05-09 08:57:34 +0200 |
commit | d102de1b38f2877463529c3b27bd35ffef4fd8bf (patch) | |
tree | 31fa0bdf26ad7a2ee46d600d804a6f03260266c8 /shared/server-commands/videos/streaming-playlists-command.ts | |
parent | 2fe978744e5b74eb824e4d79c1bb9b840169f125 (diff) | |
download | PeerTube-d102de1b38f2877463529c3b27bd35ffef4fd8bf.tar.gz PeerTube-d102de1b38f2877463529c3b27bd35ffef4fd8bf.tar.zst PeerTube-d102de1b38f2877463529c3b27bd35ffef4fd8bf.zip |
Add runner server tests
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 | })) |