From 5e6f4d95763a4bc832bb6a59ea09dbc97f4ab8da Mon Sep 17 00:00:00 2001 From: Quan Date: Sun, 27 Jul 2025 23:34:56 +0800 Subject: [PATCH] =?UTF-8?q?revert:=20=E4=BF=AE=E5=A4=8D=E5=9B=BE=E6=96=87?= =?UTF-8?q?=E4=BD=9C=E5=93=81=E6=96=87=E4=BB=B6=E6=A0=BC=E5=BC=8F=E5=BC=82?= =?UTF-8?q?=E5=B8=B8=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/application/image.py | 2 +- static/XHS-Downloader.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/source/application/image.py b/source/application/image.py index 6fcebd8..30ac4b9 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/XHS-Downloader.js b/static/XHS-Downloader.js index 6fff99f..b430c66 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.3 +// @version 2.0.4 // @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