mirror of
https://github.com/Jerryplusy/rc-plugin.git
synced 2025-10-14 08:09:19 +00:00
🐞 fix: 修复 xhs 的部分网页地址无法解析问题
This commit is contained in:
parent
0759de9d42
commit
bce87f4d00
@ -1385,7 +1385,7 @@ export class tools extends plugin {
|
||||
// 一般情况下不会出现问题就使用这个正则
|
||||
id = /noteId=(\w+)/.exec(uri)?.[1] ?? verify?.[1];
|
||||
// 提取 xsec_source 和 xsec_token 参数
|
||||
xsecSource = parsedUrl.searchParams.get("xsec_source") ?? "pc_feed";
|
||||
xsecSource = parsedUrl.searchParams.get("xsec_source") || "pc_feed";
|
||||
xsecToken = parsedUrl.searchParams.get("xsec_token");
|
||||
});
|
||||
} else {
|
||||
@ -1398,7 +1398,7 @@ export class tools extends plugin {
|
||||
const parsedUrl = new URL(xhsUrlMatch[0]);
|
||||
id = /explore\/(\w+)/.exec(msgUrl)?.[1] || /discovery\/item\/(\w+)/.exec(msgUrl)?.[1];
|
||||
// 提取 xsec_source 和 xsec_token 参数
|
||||
xsecSource = parsedUrl.searchParams.get("xsec_source") ?? "pc_feed";
|
||||
xsecSource = parsedUrl.searchParams.get("xsec_source") || "pc_feed";
|
||||
xsecToken = parsedUrl.searchParams.get("xsec_token");
|
||||
}
|
||||
const downloadPath = `${ this.getCurDownloadPath(e) }`;
|
||||
|
Loading…
x
Reference in New Issue
Block a user