人人电影网.js edited online with Bitbucket
This commit is contained in:
parent
69f20fb49b
commit
1c017ab932
@ -34,80 +34,45 @@ var rule = {
|
|||||||
desc: ".info:eq(0)&&Text",
|
desc: ".info:eq(0)&&Text",
|
||||||
content: ".content&&Text",
|
content: ".content&&Text",
|
||||||
tabs: `js:
|
tabs: `js:
|
||||||
pdfh = jsp.pdfh;
|
pdfh = jsp.pdfh;
|
||||||
pdfa = jsp.pdfa;
|
pdfa = jsp.pdfa;
|
||||||
pd = jsp.pd;
|
pd = jsp.pd;
|
||||||
TABS = [];
|
TABS = [];
|
||||||
let d = pdfa(html, 'span a');
|
let d = pdfa(html, 'span a');
|
||||||
let tabsq = [];
|
let tabsq = [];
|
||||||
let tabsb = [];
|
|
||||||
let tabsm = false;
|
d.forEach(function(it) {
|
||||||
let tabse = false;
|
let burl = pdfh(it, 'a&&href');
|
||||||
|
if (burl && burl.includes("pan.quark.cn/s/")) {
|
||||||
d.forEach(function(it) {
|
tabsq.push("夸克网盘");
|
||||||
let burl = pdfh(it, 'a&&href');
|
}
|
||||||
if (burl.includes("pan.quark.cn/s/")) {
|
});
|
||||||
tabsq.push("夸克网盘");
|
|
||||||
} else if (burl.includes("pan.baidu.com/s/")) {
|
if (tabsq.length > 0) TABS.push("夸克网盘");
|
||||||
tabsb.push("百度网盘");
|
log('生成TABS: ' + JSON.stringify(TABS));`,
|
||||||
} 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));`,
|
|
||||||
lists: `js:
|
lists: `js:
|
||||||
pdfh = jsp.pdfh;
|
pdfh = jsp.pdfh;
|
||||||
pdfa = jsp.pdfa;
|
pdfa = jsp.pdfa;
|
||||||
pd = jsp.pd;
|
pd = jsp.pd;
|
||||||
LISTS = [];
|
LISTS = [];
|
||||||
let d = pdfa(html, 'span a');
|
let d = pdfa(html, 'span a');
|
||||||
let listm = [];
|
let listq = [];
|
||||||
let liste = [];
|
|
||||||
let listq = [];
|
d.forEach(function(it) {
|
||||||
let listb = [];
|
let burl = pdfh(it, 'a&&href');
|
||||||
|
let title = pdfh(it, 'a&&Text');
|
||||||
|
|
||||||
d.forEach(function(it) {
|
if (burl && burl.includes("pan.quark.cn/s/")) {
|
||||||
let burl = pdfh(it, 'a&&href');
|
// 同时删除 ? 和 # 后面的内容
|
||||||
let title = pdfh(it, 'a&&Text');
|
burl = burl.split('?')[0].split('#')[0];
|
||||||
let loopresult = title + '$' + burl;
|
let loopresult = title + '$' + burl;
|
||||||
|
listq.push(loopresult);
|
||||||
if (burl.includes("pan.quark.cn/s/")) {
|
}
|
||||||
burl = burl.split("?")[0];
|
});
|
||||||
loopresult = title + '$' + burl;
|
|
||||||
listq.push(loopresult);
|
if (listq.length > 0) {
|
||||||
} else if (burl.includes("pan.baidu.com/s/")) {
|
LISTS = [listq]; // 修复重复添加的问题
|
||||||
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];
|
|
||||||
}`,
|
|
||||||
},
|
},
|
||||||
搜索: 'li:has(img);h2&&Text;img&&data-original;.tags&&Text;a&&href',
|
搜索: 'li:has(img);h2&&Text;img&&data-original;.tags&&Text;a&&href',
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user