Add files via upload
This commit is contained in:
parent
c310f99e75
commit
e12bbc4c1f
55
js/dygang.js
55
js/dygang.js
@ -29,8 +29,27 @@ var rule = {
|
|||||||
}],
|
}],
|
||||||
lazy:'',
|
lazy:'',
|
||||||
limit:6,
|
limit:6,
|
||||||
推荐:'div#tl table.border1;img&&alt;img&&src;;a&&href',
|
推荐:'div#tl tr:has(>td>table.border1>tbody>tr>td>a>img);table.border1 img&&alt;table.border1 img&&src;table:eq(2)&&Text;a&&href',
|
||||||
一级:'table.border1;img&&alt;img&&src;;a&&href',
|
一级:`js:
|
||||||
|
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
|
||||||
|
let d = [];
|
||||||
|
let turl = (MY_PAGE === 1)? '/' : '/index_'+ MY_PAGE + '.htm';
|
||||||
|
input = rule.homeUrl + MY_CATE + turl;
|
||||||
|
let html = request(input);
|
||||||
|
let list = pdfa(html, 'tr:has(>td>table.border1)');
|
||||||
|
list.forEach(it => {
|
||||||
|
let title = pdfh(it, 'table.border1 img&&alt');
|
||||||
|
if (title!==""){
|
||||||
|
d.push({
|
||||||
|
title: title,
|
||||||
|
desc: pdfh(it, 'table:eq(1)&&Text'),
|
||||||
|
pic_url: pdfh(it, 'table.border1 img&&src'),
|
||||||
|
url: pdfh(it, 'a&&href')
|
||||||
|
});
|
||||||
|
}
|
||||||
|
})
|
||||||
|
setResult(d);
|
||||||
|
`,
|
||||||
二级:{
|
二级:{
|
||||||
title:"div.title a&&Text",
|
title:"div.title a&&Text",
|
||||||
img:"#dede_content img&&src",
|
img:"#dede_content img&&src",
|
||||||
@ -56,6 +75,12 @@ d.forEach(function(it) {
|
|||||||
tabse = true;
|
tabse = true;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
if (tabsm === true){
|
||||||
|
TABS.push("磁力");
|
||||||
|
}
|
||||||
|
if (tabse === true){
|
||||||
|
TABS.push("電驢");
|
||||||
|
}
|
||||||
let tmpIndex;
|
let tmpIndex;
|
||||||
tmpIndex=1;
|
tmpIndex=1;
|
||||||
tabsa.forEach(function(it){
|
tabsa.forEach(function(it){
|
||||||
@ -67,12 +92,6 @@ tabsq.forEach(function(it){
|
|||||||
TABS.push(it + tmpIndex);
|
TABS.push(it + tmpIndex);
|
||||||
tmpIndex = tmpIndex + 1;
|
tmpIndex = tmpIndex + 1;
|
||||||
});
|
});
|
||||||
if (tabsm === true){
|
|
||||||
TABS.push("磁力");
|
|
||||||
}
|
|
||||||
if (tabse === true){
|
|
||||||
TABS.push("電驢");
|
|
||||||
}
|
|
||||||
log('dygang TABS >>>>>>>>>>>>>>>>>>' + TABS);
|
log('dygang TABS >>>>>>>>>>>>>>>>>>' + TABS);
|
||||||
`,
|
`,
|
||||||
lists:`js:
|
lists:`js:
|
||||||
@ -91,11 +110,19 @@ d.forEach(function(it){
|
|||||||
log('dygang burl >>>>>>>>>>>>>>>>>>>>>>>>>>' + burl);
|
log('dygang burl >>>>>>>>>>>>>>>>>>>>>>>>>>' + burl);
|
||||||
let loopresult = title + '$' + burl;
|
let loopresult = title + '$' + burl;
|
||||||
if (burl.startsWith("https://www.aliyundrive.com/s/")){
|
if (burl.startsWith("https://www.aliyundrive.com/s/")){
|
||||||
|
if (TABS.length==1){
|
||||||
|
burl = "http://127.0.0.1:9978/proxy?do=ali&type=push&confirm=0&url=" + encodeURIComponent(burl);
|
||||||
|
}else{
|
||||||
burl = "http://127.0.0.1:9978/proxy?do=ali&type=push&url=" + encodeURIComponent(burl);
|
burl = "http://127.0.0.1:9978/proxy?do=ali&type=push&url=" + encodeURIComponent(burl);
|
||||||
|
}
|
||||||
loopresult = title + '$' + burl;
|
loopresult = title + '$' + burl;
|
||||||
lista.push(loopresult);
|
lista.push(loopresult);
|
||||||
}else if (burl.startsWith("https://pan.quark.cn/s/")){
|
}else if (burl.startsWith("https://pan.quark.cn/s/")){
|
||||||
|
if (TABS.length==1){
|
||||||
|
burl = "http://127.0.0.1:9978/proxy?do=quark&type=push&confirm=0&url=" + encodeURIComponent(burl);
|
||||||
|
}else{
|
||||||
burl = "http://127.0.0.1:9978/proxy?do=quark&type=push&url=" + encodeURIComponent(burl);
|
burl = "http://127.0.0.1:9978/proxy?do=quark&type=push&url=" + encodeURIComponent(burl);
|
||||||
|
}
|
||||||
loopresult = title + '$' + burl;
|
loopresult = title + '$' + burl;
|
||||||
listq.push(loopresult);
|
listq.push(loopresult);
|
||||||
}else if (burl.startsWith("magnet")){
|
}else if (burl.startsWith("magnet")){
|
||||||
@ -104,18 +131,18 @@ d.forEach(function(it){
|
|||||||
liste.push(loopresult);
|
liste.push(loopresult);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
lista.forEach(function(it){
|
|
||||||
LISTS.push([it]);
|
|
||||||
});
|
|
||||||
listq.forEach(function(it){
|
|
||||||
LISTS.push([it]);
|
|
||||||
});
|
|
||||||
if (listm.length>0){
|
if (listm.length>0){
|
||||||
LISTS.push(listm);
|
LISTS.push(listm);
|
||||||
}
|
}
|
||||||
if (liste.length>0){
|
if (liste.length>0){
|
||||||
LISTS.push(liste);
|
LISTS.push(liste);
|
||||||
}
|
}
|
||||||
|
lista.forEach(function(it){
|
||||||
|
LISTS.push([it]);
|
||||||
|
});
|
||||||
|
listq.forEach(function(it){
|
||||||
|
LISTS.push([it]);
|
||||||
|
});
|
||||||
`,
|
`,
|
||||||
|
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user