Spaces:
Running
Running
Commit
·
378c63b
1
Parent(s):
a4f0797
Code Updates & Optimisations, 4MB Limit Changed to 2MB
Browse files
FileStream/server/Functions/downloader.py
CHANGED
@@ -57,7 +57,7 @@ async def media_streamer(request: web.Request, db_id: str, speed: str):
|
|
57 |
)
|
58 |
|
59 |
# Set chunk size based on speed
|
60 |
-
chunk_size =
|
61 |
|
62 |
# Ensure we don't go past the file size
|
63 |
until_bytes = min(until_bytes, file_size - 1)
|
|
|
57 |
)
|
58 |
|
59 |
# Set chunk size based on speed
|
60 |
+
chunk_size = 2 * 1024 * 1024 if speed == "FAST" else 512 * 1024
|
61 |
|
62 |
# Ensure we don't go past the file size
|
63 |
until_bytes = min(until_bytes, file_size - 1)
|