diff options
author | Chocobozzz <me@florianbigard.com> | 2022-10-11 14:20:19 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-10-11 14:33:42 +0200 |
commit | 8bd6aa0424a034166a6b1a63fe4660140246bbb2 (patch) | |
tree | 62a8253a5e1311478befffea74ff4ccfd90b90a2 /server/tests/shared/streaming-playlists.ts | |
parent | 080f14025ea5113d27b9732e06a1db7eb5489dea (diff) | |
download | PeerTube-8bd6aa0424a034166a6b1a63fe4660140246bbb2.tar.gz PeerTube-8bd6aa0424a034166a6b1a63fe4660140246bbb2.tar.zst PeerTube-8bd6aa0424a034166a6b1a63fe4660140246bbb2.zip |
Also retry when fetching master m3u8 playlist
Diffstat (limited to 'server/tests/shared/streaming-playlists.ts')
-rw-r--r-- | server/tests/shared/streaming-playlists.ts | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/server/tests/shared/streaming-playlists.ts b/server/tests/shared/streaming-playlists.ts index eff34944b..74c25e99c 100644 --- a/server/tests/shared/streaming-playlists.ts +++ b/server/tests/shared/streaming-playlists.ts | |||
@@ -57,10 +57,11 @@ async function checkResolutionsInMasterPlaylist (options: { | |||
57 | playlistUrl: string | 57 | playlistUrl: string |
58 | resolutions: number[] | 58 | resolutions: number[] |
59 | transcoded?: boolean // default true | 59 | transcoded?: boolean // default true |
60 | withRetry?: boolean // default false | ||
60 | }) { | 61 | }) { |
61 | const { server, playlistUrl, resolutions, transcoded = true } = options | 62 | const { server, playlistUrl, resolutions, withRetry = false, transcoded = true } = options |
62 | 63 | ||
63 | const masterPlaylist = await server.streamingPlaylists.get({ url: playlistUrl }) | 64 | const masterPlaylist = await server.streamingPlaylists.get({ url: playlistUrl, withRetry }) |
64 | 65 | ||
65 | for (const resolution of resolutions) { | 66 | for (const resolution of resolutions) { |
66 | const reg = transcoded | 67 | const reg = transcoded |