mirror of
https://github.com/JoeanAmier/XHS-Downloader.git
synced 2026-03-22 06:57:16 +08:00
fix: 修复代码逻辑错误
修正英语项目说明 BREAKING CHANGE: 恢复内置延时机制
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
# from asyncio import sleep
|
||||
# from random import uniform
|
||||
from asyncio import sleep
|
||||
from random import uniform
|
||||
|
||||
from rich import print
|
||||
from rich.text import Text
|
||||
@@ -28,8 +28,7 @@ def logging(log, text, style=INFO):
|
||||
|
||||
|
||||
async def sleep_time(
|
||||
min_time: int | float = 1,
|
||||
max_time: int | float = 3,
|
||||
min_time: int | float = 0.5,
|
||||
max_time: int | float = 1.5,
|
||||
):
|
||||
pass
|
||||
# await sleep(uniform(min_time, max_time))
|
||||
await sleep(uniform(min_time, max_time))
|
||||
|
||||
Reference in New Issue
Block a user