mirror of
https://github.com/baiqwerdvd/StarRailUID.git
synced 2025-05-05 19:23:45 +08:00
应急措施
This commit is contained in:
parent
e170bce766
commit
72b090864e
@ -93,11 +93,11 @@ async def download_all_file_from_cos():
|
||||
download_file(
|
||||
url, res_type, resource_type, name, sess
|
||||
),
|
||||
timeout=60,
|
||||
timeout=600,
|
||||
)
|
||||
)
|
||||
# await download_file(url, FILE_TO_PATH[file], name)
|
||||
if len(TASKS) >= 10:
|
||||
if len(TASKS) >= 5:
|
||||
await _download(TASKS)
|
||||
await _download(TASKS)
|
||||
if temp_num == 0:
|
||||
@ -112,10 +112,10 @@ async def download_all_file_from_cos():
|
||||
TASKS.append(
|
||||
asyncio.wait_for(
|
||||
download_file(url, res_type, resource_type, name, sess),
|
||||
timeout=60,
|
||||
timeout=600,
|
||||
)
|
||||
)
|
||||
if len(TASKS) >= 10:
|
||||
if len(TASKS) >= 5:
|
||||
await _download(TASKS)
|
||||
await _download(TASKS)
|
||||
if count := len(failed_list):
|
||||
|
Loading…
x
Reference in New Issue
Block a user