mirror of
https://github.com/baiqwerdvd/StarRailUID.git
synced 2025-05-06 03:33: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(
|
download_file(
|
||||||
url, res_type, resource_type, name, sess
|
url, res_type, resource_type, name, sess
|
||||||
),
|
),
|
||||||
timeout=60,
|
timeout=600,
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
# await download_file(url, FILE_TO_PATH[file], name)
|
# await download_file(url, FILE_TO_PATH[file], name)
|
||||||
if len(TASKS) >= 10:
|
if len(TASKS) >= 5:
|
||||||
await _download(TASKS)
|
await _download(TASKS)
|
||||||
await _download(TASKS)
|
await _download(TASKS)
|
||||||
if temp_num == 0:
|
if temp_num == 0:
|
||||||
@ -112,10 +112,10 @@ async def download_all_file_from_cos():
|
|||||||
TASKS.append(
|
TASKS.append(
|
||||||
asyncio.wait_for(
|
asyncio.wait_for(
|
||||||
download_file(url, res_type, resource_type, name, sess),
|
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)
|
||||||
await _download(TASKS)
|
await _download(TASKS)
|
||||||
if count := len(failed_list):
|
if count := len(failed_list):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user