perf: 修改作者归档保存模式的文件夹名称格式

This commit is contained in:
2025-03-21 20:47:13 +08:00
parent e1f4fdc716
commit c43f3ad23e
3 changed files with 8 additions and 4 deletions

View File

@ -264,6 +264,7 @@ async def example():
# 返回作品详细信息,包括下载地址
# 获取数据失败时返回空字典
print(await xhs.extract(demo_link, download, index=[1, 2]))
</pre>
<h1>📋 读取剪贴板</h1>
<p>项目使用 <code>pyperclip</code> 实现读取剪贴板功能,该模块在不同的系统上会有差异。</p>
@ -383,7 +384,7 @@ async def example():
<tr>
<td align="center">account_archive</td>
<td align="center">bool</td>
<td align="center">是否将每个作者的作品储存至单独的文件夹;文件夹名称为作者昵称或者作者 ID</td>
<td align="center">是否将每个作者的作品储存至单独的文件夹;文件夹名称为 <code>作者ID_作者昵称</code></td>
<td align="center">false</td>
</tr>
<tr>

View File

@ -268,6 +268,7 @@ async def example():
# 返回作品详细信息,包括下载地址
# 获取数据失败时返回空字典
print(await xhs.extract(demo_link, download, index=[1, 2]))
</pre>
<h1>📋 Read Clipboard</h1>
<p>The project uses <code>pyperclip</code> to implement clipboard reading functionality, which varies across different systems.</p>
@ -387,7 +388,7 @@ async def example():
<tr>
<td align="center">account_archive</td>
<td align="center">bool</td>
<td align="center">Whether to save each author's works into a separate folder; the folder name will be the author's nickname or author ID</td>
<td align="center">Whether to save each author's works into a separate folder; The folder name is <code>authorID_nickname</code></td>
<td align="center">false</td>
</tr>
<tr>

View File

@ -12,6 +12,7 @@ from urllib.parse import urlparse
from fastapi import FastAPI
from fastapi.responses import RedirectResponse
from pyperclip import copy
# from aiohttp import web
from pyperclip import paste
from uvicorn import Config
@ -174,8 +175,9 @@ class XHS:
u,
container["动图地址"],
index,
self.CLEANER.filter_name(container["作者昵称"])
or container["作者ID"],
container["作者ID"]
+ "_"
+ self.CLEANER.filter_name(container["作者昵称"]),
name,
container["作品类型"],
log,