From f56046c8101acddf671dd9fef0d317a307b924f6 Mon Sep 17 00:00:00 2001 From: Quan Date: Sat, 12 Jul 2025 22:10:27 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E9=83=A8=E5=88=86?= =?UTF-8?q?=E5=9B=BE=E6=96=87=E4=BD=9C=E5=93=81=E4=B8=8B=E8=BD=BD=E5=A4=B1?= =?UTF-8?q?=E8=B4=A5=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes #264 --- source/application/image.py | 2 +- static/Release_Notes.md | 10 ++++++---- static/XHS-Downloader.js | 4 ++-- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/source/application/image.py b/source/application/image.py index 30ac4b9..6fcebd8 100644 --- a/source/application/image.py +++ b/source/application/image.py @@ -41,7 +41,7 @@ class Image: token: str, format_: str, ) -> str: - return f"https://ci.xiaohongshu.com/{token}?imageView2/format/{format_}" + return f"https://ci.xiaohongshu.com/{token}?imageView2/format/{format_}?" @staticmethod def __extract_image_token(url: str) -> str: diff --git a/static/Release_Notes.md b/static/Release_Notes.md index 5c95576..7abb78b 100644 --- a/static/Release_Notes.md +++ b/static/Release_Notes.md @@ -1,8 +1,9 @@ **项目更新内容:** -1. 修改 API 模式默认端口为 `5556` -2. 优化提取链接的正则表达式 -3. 支持音乐图集作品下载 +1. 修复部分图文作品下载失败的问题 +2. 修改 API 模式默认端口为 `5556` +3. 优化提取链接的正则表达式 +4. 支持音乐图集作品下载 ***** @@ -11,4 +12,5 @@ **版本号:2.0.2** 1. 修复单张图片的作品下载后文件损坏问题 -2. 修复用户脚本 CSS 样式冲突问题 +2. 修复部分图文作品下载失败的问题 +3. 修复用户脚本 CSS 样式冲突问题 diff --git a/static/XHS-Downloader.js b/static/XHS-Downloader.js index 96566aa..6fff99f 100644 --- a/static/XHS-Downloader.js +++ b/static/XHS-Downloader.js @@ -1,7 +1,7 @@ // ==UserScript== // @name XHS-Downloader // @namespace https://github.com/JoeanAmier/XHS-Downloader -// @version 2.0.2 +// @version 2.0.3 // @description 提取小红书作品/用户链接,下载小红书无水印图文/视频作品文件 // @author JoeanAmier // @match http*://xhslink.com/* @@ -158,7 +158,7 @@ XHS-Downloader 用户脚本 详细说明: images.forEach((item) => { let match = item.urlDefault.match(regex); if (match && match[1]) { - urls.push(`https://ci.xiaohongshu.com/${match[1]}?imageView2/format/png`); + urls.push(`https://ci.xiaohongshu.com/${match[1]}?imageView2/format/png?`); } }) return urls