From 67479affb23a9f4f838e63bc697b9ea337b55ffc Mon Sep 17 00:00:00 2001 From: Quan Date: Thu, 14 Aug 2025 10:40:03 +0800 Subject: [PATCH] =?UTF-8?q?fix(script):=20=E4=BF=AE=E5=A4=8D=E5=90=88?= =?UTF-8?q?=E8=BE=91=E4=BD=9C=E5=93=81=E9=93=BE=E6=8E=A5=E6=8F=90=E5=8F=96?= =?UTF-8?q?=E5=A4=B1=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 --- static/Release_Notes.md | 2 +- static/XHS-Downloader.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/static/Release_Notes.md b/static/Release_Notes.md index 25759d1..6a46087 100644 --- a/static/Release_Notes.md +++ b/static/Release_Notes.md @@ -4,7 +4,7 @@ **用户脚本更新内容:** -**版本号:2.1.12** +**版本号:2.1.13** 1. 新增链接提取/图片下载选择模式开关 2. 修复合辑作品链接提取失败的问题 diff --git a/static/XHS-Downloader.js b/static/XHS-Downloader.js index c0255be..12a19f8 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.1.12 +// @version 2.1.13 // @description 提取小红书作品/用户链接,下载小红书无水印图文/视频作品文件 // @author JoeanAmier // @match http*://xhslink.com/* @@ -515,7 +515,7 @@ const id = match[1]; // match[0] 是整个匹配的字符串,match[1] 是第一个括号内的匹配 const notesRawValue = unsafeWindow.__INITIAL_STATE__.board.boardFeedsMap._rawValue[id].notes; - return notesRawValue.map(item => [item.noteId, item.xsecToken, item.noteCard.cover.urlDefault, item.noteCard.user.nickName, item.noteCard.displayTitle,]); + return notesRawValue.map(item => [item.noteId, item.xsecToken, item.cover.urlDefault, item.user.nickName, item.displayTitle,]); } else { console.error("从链接提取专辑 ID 失败", currentUrl,); return [];