feat: 发布 2.3 版本

This commit is contained in:
JoeanAmier
2024-11-10 11:00:31 +08:00
parent de28b9de69
commit 5463854906
10 changed files with 13 additions and 13 deletions

View File

@@ -6,7 +6,7 @@ LABEL name="XHS-Downloader" authors="JoeanAmier" repository="https://github.com/
COPY locale /app/locale
COPY source /app/source
COPY static /app/static
COPY static/XHS-Downloader.tcss /app/static/XHS-Downloader.tcss
COPY LICENSE /app/LICENSE
COPY main.py /app/main.py
COPY requirements.txt /app/requirements.txt

View File

@@ -14,7 +14,6 @@
</div>
<br>
<p>🔥 <b>小红书链接提取/作品采集工具</b>:提取账号发布、收藏、点赞、专辑作品链接;提取搜索结果作品链接、用户链接;采集小红书作品信息;提取小红书作品下载地址;下载小红书无水印作品文件!</p>
<p><strong>⚠️ 2024/9/24: 由于小红书规则更新,使用版本号低于 <code>1.7.1</code> 的用户脚本有封号风险,请及时更新用户脚本后再使用!</strong></p>
<p>⭐ 本项目完全免费开源,无任何收费功能,请勿上当受骗!</p>
<h1>📑 项目功能</h1>
<ul><b>程序功能</b>

View File

@@ -14,7 +14,6 @@
</div>
<br>
<p>🔥 <b>Xiaohongshu Link Extraction/Content Collection Tool</b>Extract account-published, favorited, and liked content links; extract search result content links and user links; collect Xiaohongshu content information; extract Xiaohongshu content download addresses; download Xiaohongshu watermark-free content files!</p>
<p><strong>⚠️ 2024/9/24: Due to rule updates on Xiaohongshu, there is a risk of account suspension for user scripts with version numbers lower than <code>1.7.1</code> Please update the user scripts in a timely manner before using them!</strong></p>
<p>⭐ This project is completely free and open-source, with no paid features. Please do not be deceived!</p>
<p>⭐ Due to the author's limited energy, I was unable to update the English document in a timely manner, and the content may have become outdated, partial translation is machine translation, the translation result may be incorrect, Suggest referring to Chinese documentation. If you want to contribute to translation, we warmly welcome you.</p>
<h1>📑 Project Features</h1>

View File

@@ -31,14 +31,15 @@ class BrowserCookie:
"Firefox": (firefox, "Linux, macOS, Windows"),
"LibreWolf": (librewolf, "Linux, macOS, Windows"),
}
TIP = "Windows 系统需要以管理员身份运行程序才能读取 Chromium、Chrome、Edge 浏览器 Cookie"
@classmethod
def run(cls, domains: list[str], console: Console = None, ) -> str:
console = console or Console()
options = "\n".join(f"{i}. {k}: {v[1]}" for i, (k, v) in enumerate(cls.SUPPORT_BROWSER.items(), start=1))
if browser := console.input(
f"读取指定浏览器的 Cookie 并写入配置文件;注意:{cls.TIP}\n{options}\n请输入浏览器名称或序号:", ):
f"读取指定浏览器的 Cookie 并写入配置文件\n"
f"Windows 系统需要以管理员身份运行程序才能读取 Chromium、Chrome、Edge 浏览器 Cookie\n"
f"{options}\n请输入浏览器名称或序号:", ):
return cls.get(browser, domains, console, )
console.print("未选择浏览器!")

View File

@@ -2,7 +2,7 @@ from pathlib import Path
VERSION_MAJOR = 2
VERSION_MINOR = 3
VERSION_BETA = True
VERSION_BETA = False
ROOT = Path(__file__).resolve().parent.parent.parent
PROJECT = f"XHS-Downloader V{VERSION_MAJOR}.{
VERSION_MINOR}{" Beta" if VERSION_BETA else ""}"
@@ -65,4 +65,4 @@ FILE_SIGNATURES: tuple[tuple[int, bytes, str,], ...] = (
)
FILE_SIGNATURES_LENGTH = max(offset + len(signature) for offset, signature, _ in FILE_SIGNATURES)
MAX_WORKERS: int = 3
MAX_WORKERS: int = 4

View File

@@ -1,6 +1,6 @@
from gettext import translation
from source.module import ROOT
from ..module import ROOT
__all__ = ["Translate"]

View File

@@ -1,13 +1,14 @@
**项目更新内容:**
1. 修复下载文件频繁提示失败的问题
2. 优化从浏览器读取 Cookie 功能
2. 更新从浏览器读取 Cookie 功能
3. 修复文件名称过长报错的问题
4. 优化已下载文件判断逻辑
5. 更新文件下载并发数量
6. 新增文件名称长度限制
7. 优化文件后缀处理逻辑
8. 优化代理测试逻辑
5. 新增文件名称长度限制
6. 优化文件后缀处理逻辑
7. 优化代理测试逻辑
8. 修复其他已知问题
9. 优化代码运行逻辑
<p><strong>旧版本升级后首次运行请删除配置文件 <code>settings.json</code>,删除后重新运行程序会自动生成新的默认配置文件!</strong></p>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 167 KiB

After

Width:  |  Height:  |  Size: 166 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 102 KiB

After

Width:  |  Height:  |  Size: 103 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 133 KiB

After

Width:  |  Height:  |  Size: 205 KiB