mirror of
https://github.com/Jerryplusy/rc-plugin.git
synced 2025-10-14 08:09:19 +00:00
🚑 patch: 修复快手卡片解析
This commit is contained in:
parent
8a496e054d
commit
c372d07dcd
@ -169,7 +169,7 @@ export class tools extends plugin {
|
|||||||
fnc: "bodianMusic",
|
fnc: "bodianMusic",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
reg: "(kuaishou.com|ixigua.com|h5.pipix.com|h5.pipigx.com|s.xsj.qq.com|m.okjike.com)",
|
reg: "(chenzhongtech.com|kuaishou.com|ixigua.com|h5.pipix.com|h5.pipigx.com|s.xsj.qq.com|m.okjike.com)",
|
||||||
fnc: "general",
|
fnc: "general",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -43,7 +43,7 @@ class GeneralLinkAdapter {
|
|||||||
// 例子:https://www.kuaishou.com/short-video/3xkfs8p4pnd67p4?authorId=3xkznsztpwetngu&streamSource=find&area=homexxbrilliant
|
// 例子:https://www.kuaishou.com/short-video/3xkfs8p4pnd67p4?authorId=3xkznsztpwetngu&streamSource=find&area=homexxbrilliant
|
||||||
// https://v.m.chenzhongtech.com/fw/photo/3xburnkmj3auazc
|
// https://v.m.chenzhongtech.com/fw/photo/3xburnkmj3auazc
|
||||||
// https://v.kuaishou.com/1ff8QP
|
// https://v.kuaishou.com/1ff8QP
|
||||||
let msg = /(?:https?:\/\/)?(www|v)\.kuaishou\.com\/[A-Za-z\d._?%&+\-=\/#]*/g.exec(link)[0];
|
let msg = /(?:https?:\/\/)?(www|v)\.(kuaishou|m\.chenzhongtech)\.com\/[A-Za-z\d._?%&+\-=\/#]*/g.exec(link)[0];
|
||||||
// 跳转短号
|
// 跳转短号
|
||||||
if (msg.includes("v.kuaishou")) {
|
if (msg.includes("v.kuaishou")) {
|
||||||
msg = await this.fetchUrl(msg, true);
|
msg = await this.fetchUrl(msg, true);
|
||||||
@ -127,7 +127,7 @@ class GeneralLinkAdapter {
|
|||||||
async init(link) {
|
async init(link) {
|
||||||
logger.mark("[R插件][通用解析]", link)
|
logger.mark("[R插件][通用解析]", link)
|
||||||
const handlers = new Map([
|
const handlers = new Map([
|
||||||
[/kuaishou.com/, this.ks.bind(this)],
|
[/(kuaishou.com|chenzhongtech.com)/, this.ks.bind(this)],
|
||||||
[/ixigua.com/, this.xigua.bind(this)],
|
[/ixigua.com/, this.xigua.bind(this)],
|
||||||
[/h5.pipix.com/, this.pipixia.bind(this)],
|
[/h5.pipix.com/, this.pipixia.bind(this)],
|
||||||
[/h5.pipigx.com/, this.pipigx.bind(this)],
|
[/h5.pipigx.com/, this.pipigx.bind(this)],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user