fix(script): 修复合辑作品链接提取失败的问题

This commit is contained in:
Quan 2025-08-14 10:40:03 +08:00
parent 08c5443289
commit 67479affb2
2 changed files with 3 additions and 3 deletions

View File

@ -4,7 +4,7 @@
**用户脚本更新内容:**
**版本号2.1.12**
**版本号2.1.13**
1. 新增链接提取/图片下载选择模式开关
2. 修复合辑作品链接提取失败的问题

View File

@ -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 [];