更新源 202511080340

This commit is contained in:
github-actions[bot]
2025-11-08 03:40:02 +00:00
parent 957edc820d
commit 58cb347218
6 changed files with 124 additions and 161 deletions

View File

@@ -34,80 +34,45 @@ var rule = {
desc: ".info:eq(0)&&Text",
content: ".content&&Text",
tabs: `js:
pdfh = jsp.pdfh;
pdfa = jsp.pdfa;
pd = jsp.pd;
TABS = [];
let d = pdfa(html, 'span a');
let tabsq = [];
let tabsb = [];
let tabsm = false;
let tabse = false;
d.forEach(function(it) {
let burl = pdfh(it, 'a&&href');
if (burl.includes("pan.quark.cn/s/")) {
tabsq.push("夸克网盘");
} else if (burl.includes("pan.baidu.com/s/")) {
tabsb.push("百度网盘");
} else if (burl.startsWith("magnet")) {
tabsm = true;
} else if (burl.startsWith("ed2k")) {
tabse = true;
}
});
if (tabsb.length > 0) TABS.push("百度网盘");
if (tabsq.length > 0) TABS.push("夸克网盘");
if (tabsm) TABS.push("磁力");
if (tabse) TABS.push("电驴");
log('生成TABS: ' + JSON.stringify(TABS));`,
pdfh = jsp.pdfh;
pdfa = jsp.pdfa;
pd = jsp.pd;
TABS = [];
let d = pdfa(html, 'span a');
let tabsq = [];
d.forEach(function(it) {
let burl = pdfh(it, 'a&&href');
if (burl && burl.includes("pan.quark.cn/s/")) {
tabsq.push("夸克网盘");
}
});
if (tabsq.length > 0) TABS.push("夸克网盘");
log('生成TABS: ' + JSON.stringify(TABS));`,
lists: `js:
pdfh = jsp.pdfh;
pdfa = jsp.pdfa;
pd = jsp.pd;
LISTS = [];
let d = pdfa(html, 'span a');
let listm = [];
let liste = [];
let listq = [];
let listb = [];
pdfh = jsp.pdfh;
pdfa = jsp.pdfa;
pd = jsp.pd;
LISTS = [];
let d = pdfa(html, 'span a');
let listq = [];
d.forEach(function(it) {
let burl = pdfh(it, 'a&&href');
let title = pdfh(it, 'a&&Text');
d.forEach(function(it) {
let burl = pdfh(it, 'a&&href');
let title = pdfh(it, 'a&&Text');
if (burl && burl.includes("pan.quark.cn/s/")) {
// 同时删除 ? 和 # 后面的内容
burl = burl.split('?')[0].split('#')[0];
let loopresult = title + '$' + burl;
if (burl.includes("pan.quark.cn/s/")) {
burl = burl.split("?")[0];
loopresult = title + '$' + burl;
listq.push(loopresult);
} else if (burl.includes("pan.baidu.com/s/")) {
let codeMatch = title.match(/提取码[:]?\s*(\w{4})|(\w{4})(?=提取|百度|网盘)/i);
if (codeMatch) {
let code = codeMatch[1] || codeMatch[2];
burl += '#' + code;
}
loopresult = title + '$' + burl;
listb.push(loopresult);
} else if (burl.startsWith("magnet")) {
listm.push(loopresult);
} else if (burl.startsWith("ed2k")) {
liste.push(loopresult);
}
});
if (listb.length > 0) LISTS.push(listb);
if (listq.length > 0) LISTS.push(listq);
if (listm.length > 0) LISTS.push(listm);
if (liste.length > 0) LISTS.push(liste);
if (LISTS.length === 0 && listq.length > 0) {
LISTS = [listq];
}`,
listq.push(loopresult);
}
});
if (listq.length > 0) {
LISTS = [listq]; // 修复重复添加的问题
}`,
},
搜索: 'li:has(img);h2&&Text;img&&data-original;.tags&&Text;a&&href',
};
};

View File

@@ -25,16 +25,16 @@ var rule = {
limit: 9,
double: false,
推荐: '*',
一级: 'js:\n let html = fetch(input);\n let list = pdfa(html, ".erx-list&&li");\n VODS = list.map(x => {\n return {\n vod_name: pdfh(x, "a&&Text"),\n vod_pic: \'https://fs-im-kefu.7moor-fs1.com/ly/4d2c3f00-7d4c-11e5-af15-41bf63ae4ea0/1746269827120/1.jpeg\',\n vod_remarks: pdfh(x, "a&&Text"),\n vod_content: pdfh(x, "a&&Text"),\n vod_id: pdfh(x, "a&&href")\n }\n });\n ',
一级: 'js:\n let html = fetch(input);\n let list = pdfa(html, ".erx-list&&li");\n VODS = list.map(x => {\n return {\n vod_name: pdfh(x, "a&&Text"),\n vod_pic: \'http://pan.aa53.cn/view.php/0ff03c312b221f43aaa67241699910d1.jpg\',\n vod_remarks: pdfh(x, "a&&Text"),\n vod_content: pdfh(x, "a&&Text"),\n vod_id: pdfh(x, "a&&href")\n }\n });\n ',
二级: {
title: 'h1&&Text',
img: 'https://fs-im-kefu.7moor-fs1.com/ly/4d2c3f00-7d4c-11e5-af15-41bf63ae4ea0/1746269827120/1.jpeg',
img: 'http://pan.aa53.cn/view.php/0ff03c312b221f43aaa67241699910d1.jpg',
desc: '.card-text:eq(2)&&Text;;;;',
content: '.card-text:eq(0)&&Text',
tabs: "js:TABS = ['双星']",
lists: "js:\n LISTS = [];\n let lists1 = pdfa(html, '.dlipp-cont-bd').map(it => {\n let _tt = pdfh(it, 'a&&Text');\n let _uu = pdfh(it, 'a&&href');\n return _tt + '$' + _uu;\n });\n LISTS.push(lists1);\n ",
},
搜索: 'js:\n let html = fetch(input);\n let list = pdfa(html, ".erx-list&&li");\n VODS = list.map(x => {\n return {\n vod_name: pdfh(x, "a&&Text"),\n vod_pic: \'https://fs-im-kefu.7moor-fs1.com/ly/4d2c3f00-7d4c-11e5-af15-41bf63ae4ea0/1746269827120/1.jpeg\', \n vod_remarks: pdfh(x, "a&&Text"),\n vod_content: pdfh(x, "a&&Text"),\n vod_id: pdfh(x, "a&&href")\n }\n });\n ',
搜索: 'js:\n let html = fetch(input);\n let list = pdfa(html, ".erx-list&&li");\n VODS = list.map(x => {\n return {\n vod_name: pdfh(x, "a&&Text"),\n vod_pic: \'http://pan.aa53.cn/view.php/0ff03c312b221f43aaa67241699910d1.jpg\', \n vod_remarks: pdfh(x, "a&&Text"),\n vod_content: pdfh(x, "a&&Text"),\n vod_id: pdfh(x, "a&&href")\n }\n });\n ',
cate_exclude: '首页|留言|APP|下载|资讯|新闻|动态',
tab_exclude: '猜你|喜欢|下载|剧情|榜|评论',
类型: '影视',