Update bili_webup.py

set chunk_size is 10M
This commit is contained in:
香芋奶茶 authored and GitHub committed 2022-03-24 22:06:13 +08:00
1 parent faceff7206
commit 84bcf76bd9
1 file changed
+1 -1
+1 -1
View File
@@ -274,7 +274,7 @@ class BiliBili:
timeout=5)
return asyncio.run(upload(f, total_size, ret.json(), tasks=tasks))
async def cos(self, file, total_size, ret, chunk_size=4194304, tasks=3):
async def cos(self, file, total_size, ret, chunk_size=10485760, tasks=3):
filename = file.name
url = ret["url"].replace("accelerate", "ap-shanghai")
biz_id = ret["biz_id"]