From a5ee023cf36cfa11e6088c1f8111e237076474eb Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 30 Nov 2021 08:40:30 +0100 Subject: [PATCH] Fix redundancy timeout --- server/lib/hls.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/lib/hls.ts b/server/lib/hls.ts index f541dd5d1cc..f2fe893a943 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)