Spaces:
Running
Running
Commit
·
1a47129
1
Parent(s):
378c63b
Code Updates & Optimisations, 2MB Limit Changed to 1MB
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 = 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)
|