From 4ea014bbf4ebb6b17e20c0a1bea4af6b168eacdd Mon Sep 17 00:00:00 2001 From: "Gh.Wang" Date: Mon, 7 Apr 2025 17:11:25 +0800 Subject: [PATCH] =?UTF-8?q?update(AlistClient):=20=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E4=BB=85=E8=8E=B7=E5=8F=96=E8=B0=83=E7=94=A8=20alist=20api=20?= =?UTF-8?q?=E6=97=B6=20sleep?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/modules/alist/v3/client.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/modules/alist/v3/client.py b/app/modules/alist/v3/client.py index 82cdd235..04c597d0 100644 --- a/app/modules/alist/v3/client.py +++ b/app/modules/alist/v3/client.py @@ -373,8 +373,8 @@ async def iter_path( """ for path in await self.async_api_fs_list(dir_path): - await sleep(wait_time) if path.is_dir: + await sleep(wait_time) async for child_path in self.iter_path( dir_path=path.path, wait_time=wait_time, @@ -385,6 +385,7 @@ async def iter_path( if filter(path): if is_detail: + await sleep(wait_time) yield await self.async_api_fs_get(path.path) else: yield path