From 078819cd17a2a4dd3263891a01991ccbeeb4d3ba Mon Sep 17 00:00:00 2001 From: liuwei Date: Fri, 28 Feb 2025 09:07:09 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E6=A0=87=E9=A2=98=E5=8C=B9?= =?UTF-8?q?=E9=85=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- xiuren/meitu_dl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xiuren/meitu_dl.py b/xiuren/meitu_dl.py index 548e33c..f20721d 100644 --- a/xiuren/meitu_dl.py +++ b/xiuren/meitu_dl.py @@ -43,7 +43,7 @@ def fetch_posts(base_url, posts_per_batch=10): post_title = post.get_text().strip() # 检查帖子是否已下载 - match = re.search(r'No\.(\d+)', post_title) + match = re.search(r'(?:[Nn][Oo]|[Vv][Oo][Ll])\.(\d+)', post_title) # 支持 "No." 或 " folder_name = match.group(1) if match else f"unknown_{len(posts) + 1}" folder_path = os.path.join(download_root, folder_name)