aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib/hls.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/lib/hls.ts')
-rw-r--r--server/lib/hls.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/server/lib/hls.ts b/server/lib/hls.ts
index 3575981f4..16a805ac2 100644
--- a/server/lib/hls.ts
+++ b/server/lib/hls.ts
@@ -116,7 +116,8 @@ function downloadPlaylistSegments (playlistUrl: string, destinationDir: string,
116 for (const fileUrl of fileUrls) { 116 for (const fileUrl of fileUrls) {
117 const destPath = join(tmpDirectory, basename(fileUrl)) 117 const destPath = join(tmpDirectory, basename(fileUrl))
118 118
119 await doRequestAndSaveToFile({ uri: fileUrl }, destPath) 119 const bodyKBLimit = 10 * 1000 * 1000 // 10GB
120 await doRequestAndSaveToFile({ uri: fileUrl }, destPath, bodyKBLimit)
120 } 121 }
121 122
122 clearTimeout(timer) 123 clearTimeout(timer)