mirror of
https://github.com/JoeanAmier/XHS-Downloader.git
synced 2026-03-22 06:57:16 +08:00
perf: 修改作者归档保存模式的文件夹名称格式
This commit is contained in:
@@ -264,6 +264,7 @@ async def example():
|
|||||||
# 返回作品详细信息,包括下载地址
|
# 返回作品详细信息,包括下载地址
|
||||||
# 获取数据失败时返回空字典
|
# 获取数据失败时返回空字典
|
||||||
print(await xhs.extract(demo_link, download, index=[1, 2]))
|
print(await xhs.extract(demo_link, download, index=[1, 2]))
|
||||||
|
|
||||||
</pre>
|
</pre>
|
||||||
<h1>📋 读取剪贴板</h1>
|
<h1>📋 读取剪贴板</h1>
|
||||||
<p>项目使用 <code>pyperclip</code> 实现读取剪贴板功能,该模块在不同的系统上会有差异。</p>
|
<p>项目使用 <code>pyperclip</code> 实现读取剪贴板功能,该模块在不同的系统上会有差异。</p>
|
||||||
@@ -383,7 +384,7 @@ async def example():
|
|||||||
<tr>
|
<tr>
|
||||||
<td align="center">account_archive</td>
|
<td align="center">account_archive</td>
|
||||||
<td align="center">bool</td>
|
<td align="center">bool</td>
|
||||||
<td align="center">是否将每个作者的作品储存至单独的文件夹;文件夹名称为作者昵称或者作者 ID</td>
|
<td align="center">是否将每个作者的作品储存至单独的文件夹;文件夹名称为 <code>作者ID_作者昵称</code></td>
|
||||||
<td align="center">false</td>
|
<td align="center">false</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
|
|||||||
@@ -268,6 +268,7 @@ async def example():
|
|||||||
# 返回作品详细信息,包括下载地址
|
# 返回作品详细信息,包括下载地址
|
||||||
# 获取数据失败时返回空字典
|
# 获取数据失败时返回空字典
|
||||||
print(await xhs.extract(demo_link, download, index=[1, 2]))
|
print(await xhs.extract(demo_link, download, index=[1, 2]))
|
||||||
|
|
||||||
</pre>
|
</pre>
|
||||||
<h1>📋 Read Clipboard</h1>
|
<h1>📋 Read Clipboard</h1>
|
||||||
<p>The project uses <code>pyperclip</code> to implement clipboard reading functionality, which varies across different systems.</p>
|
<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>
|
<tr>
|
||||||
<td align="center">account_archive</td>
|
<td align="center">account_archive</td>
|
||||||
<td align="center">bool</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>
|
<td align="center">false</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
|
|||||||
@@ -12,6 +12,7 @@ from urllib.parse import urlparse
|
|||||||
from fastapi import FastAPI
|
from fastapi import FastAPI
|
||||||
from fastapi.responses import RedirectResponse
|
from fastapi.responses import RedirectResponse
|
||||||
from pyperclip import copy
|
from pyperclip import copy
|
||||||
|
|
||||||
# from aiohttp import web
|
# from aiohttp import web
|
||||||
from pyperclip import paste
|
from pyperclip import paste
|
||||||
from uvicorn import Config
|
from uvicorn import Config
|
||||||
@@ -174,8 +175,9 @@ class XHS:
|
|||||||
u,
|
u,
|
||||||
container["动图地址"],
|
container["动图地址"],
|
||||||
index,
|
index,
|
||||||
self.CLEANER.filter_name(container["作者昵称"])
|
container["作者ID"]
|
||||||
or container["作者ID"],
|
+ "_"
|
||||||
|
+ self.CLEANER.filter_name(container["作者昵称"]),
|
||||||
name,
|
name,
|
||||||
container["作品类型"],
|
container["作品类型"],
|
||||||
log,
|
log,
|
||||||
|
|||||||
Reference in New Issue
Block a user