X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;ds=sidebyside;f=server%2Flib%2Fhls.ts;h=f2fe893a94333694a2c5205652d0fcbf526a307c;hb=636d73c58866ed235c207719e41fdde3c2d6c969;hp=f541dd5d1cc49bde6c669b89138ea4ae22c34251;hpb=7b0c61e743e14ae573bafb0354488fad4f0a0d03;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/lib/hls.ts b/server/lib/hls.ts index f541dd5d1..f2fe893a9 100644 --- a/server/lib/hls.ts +++ b/server/lib/hls.ts @@ -130,7 +130,7 @@ function downloadPlaylistSegments (playlistUrl: string, destinationDir: string, for (const fileUrl of fileUrls) { const destPath = join(tmpDirectory, basename(fileUrl)) - await doRequestAndSaveToFile(fileUrl, destPath, { bodyKBLimit: remainingBodyKBLimit, timeout: REQUEST_TIMEOUTS.FILE }) + await doRequestAndSaveToFile(fileUrl, destPath, { bodyKBLimit: remainingBodyKBLimit, timeout: REQUEST_TIMEOUTS.REDUNDANCY }) const { size } = await stat(destPath) remainingBodyKBLimit -= (size / 1000)