From e48630146471bc131514dd1e97b0d309b42db3e4 Mon Sep 17 00:00:00 2001 From: liuwei Date: Thu, 27 Feb 2025 17:01:54 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8C=B9=E9=85=8D=E6=9B=B4=E5=A4=9A=E6=A0=87?= =?UTF-8?q?=E9=A2=98?= 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 02cc0a8..2e0508a 100644 --- a/xiuren/meitu_dl.py +++ b/xiuren/meitu_dl.py @@ -139,7 +139,7 @@ def meitu_dowload_pic(dl_path, dl_url): print(f" 链接: {post['url']}") match = re.search(r'[Nn][Oo]|[Vv][Oo][Ll]\.(\d+)', post['title']) # 支持 "No." 或 " - folder_name = match.group(1) if match else f"unknown_{i}" + folder_name = match.group(1) if match else post['title'] folder_path = os.path.join(dl_path, folder_name) os.makedirs(folder_path, exist_ok=True) # 创建目录,exist_ok=True 避免重复创建报错