Add files via upload

This commit is contained in:
alantang 2023-08-21 14:05:17 +08:00 committed by GitHub
parent f6a787df3b
commit 206bb3fd0e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 242 additions and 84 deletions

View file

@ -37,52 +37,83 @@ var rule = {
tabs:`js:
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
TABS=[]
let d = pdfa(html, 'table.t_table');
let aliIndex=1;
let d = pdfa(html, 'table.t_table a');
let tabsa = [];
let tabsq = [];
let tabsm = false;
let tabse = false;
d.forEach(function(it) {
let burl = pdfh(it, 'a&&href');
log("burl >>>>>>" + burl);
if (burl.startsWith("https://www.aliyundrive.com/s/")){
TABS.push("aliyun"+aliIndex);
aliIndex = aliIndex + 1;
tabsa.push("阿里云盤");
}else if (burl.startsWith("https://pan.quark.cn/s/")){
tabsq.push("夸克云盤");
}else if (burl.startsWith("magnet")){
tabsm = true;
}else if (burl.startsWith("ed2k")){
tabse = true;
}
});
d = pdfa(html, 'table.t_table a[href^="magnet"]');
if (d.length>0){
let tmpIndex;
tmpIndex=1;
tabsa.forEach(function(it){
TABS.push(it + tmpIndex);
tmpIndex = tmpIndex + 1;
});
tmpIndex=1;
tabsq.forEach(function(it){
TABS.push(it + tmpIndex);
tmpIndex = tmpIndex + 1;
});
if (tabsm === true){
TABS.push("磁力");
}
if (tabse === true){
TABS.push("電驢");
}
log('4khdr TABS >>>>>>>>>>>>>>>>>>' + TABS);
`,
lists:`js:
log(TABS);
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
LISTS = [];
let d = pdfa(html, 'table.t_table');
let d = pdfa(html, 'table.t_table a');
let lista = [];
let listq = [];
let listm = [];
let liste = [];
d.forEach(function(it){
let burl = pdfh(it, 'a&&href');
if (burl.startsWith("https://www.aliyundrive.com/s/")){
let title = pdfh(it, 'a&&Text');
log('title >>>>>>>>>>>>>>>>>>>>>>>>>>' + title);
burl = "http://127.0.0.1:9978/proxy?do=ali&type=push&url=" + encodeURIComponent(burl);
log('burl >>>>>>>>>>>>>>>>>>>>>>>>>>' + burl);
log('dygang title >>>>>>>>>>>>>>>>>>>>>>>>>>' + title);
log('dygang burl >>>>>>>>>>>>>>>>>>>>>>>>>>' + burl);
let loopresult = title + '$' + burl;
LISTS.push([loopresult]);
if (burl.startsWith("https://www.aliyundrive.com/s/")){
burl = "http://127.0.0.1:9978/proxy?do=ali&type=push&url=" + encodeURIComponent(burl);
loopresult = title + '$' + burl;
lista.push(loopresult);
}else if (burl.startsWith("https://pan.quark.cn/s/")){
burl = "http://127.0.0.1:9978/proxy?do=quark&type=push&url=" + encodeURIComponent(burl);
loopresult = title + '$' + burl;
listq.push(loopresult);
}else if (burl.startsWith("magnet")){
listm.push(loopresult);
}else if (burl.startsWith("ed2k")){
liste.push(loopresult);
}
});
let listm = [];
d.forEach(function(it){
let burl = pdfh(it, 'a&&href');
if (burl.startsWith("magnet")){
let title = pdfh(it, 'a&&Text');
log('title >>>>>>>>>>>>>>>>>>>>>>>>>>' + title);
log('burl >>>>>>>>>>>>>>>>>>>>>>>>>>' + burl);
let loopresult = title + '$' + burl;
listm.push(loopresult);
}
lista.forEach(function(it){
LISTS.push([it]);
});
listq.forEach(function(it){
LISTS.push([it]);
});
if (listm.length>0){
LISTS.push(listm);
}
if (liste.length>0){
LISTS.push(liste);
}
`,
},

View file

@ -33,8 +33,7 @@ var rule = {
d.push({
title: pdfh(it, 'h2&&Text'),
desc: pdfh(it, '.me-auto&&Text') + '分 / ' + pdfh(it, '.small&&Text'),
pic_url: pd(it, '.card-img&&style'),
url: pd(it, 'a&&href')
pic_url: pd(it, '.card-img&&style')
});
})
setResult(d);
@ -52,8 +51,7 @@ var rule = {
d.push({
title: pdfh(it, 'h2&&Text'),
desc: pdfh(it, '.me-auto&&Text') + '分 / ' + pdfh(it, '.small&&Text'),
pic_url: pdfh(it, '.card-img&&style'),
url: ''
pic_url: pdfh(it, '.card-img&&style')
});
})
setResult(d);

View file

@ -39,12 +39,38 @@ var rule = {
tabs:`js:
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
TABS=[]
var d = pdfa(html, '#dede_content table tbody tr a[href^="magnet"]');
if (d.length>0){
let d = pdfa(html, '#dede_content table tbody tr a');
let tabsa = [];
let tabsq = [];
let tabsm = false;
let tabse = false;
d.forEach(function(it) {
let burl = pdfh(it, 'a&&href');
if (burl.startsWith("https://www.aliyundrive.com/s/")){
tabsa.push("阿里云盤");
}else if (burl.startsWith("https://pan.quark.cn/s/")){
tabsq.push("夸克云盤");
}else if (burl.startsWith("magnet")){
tabsm = true;
}else if (burl.startsWith("ed2k")){
tabse = true;
}
});
let tmpIndex;
tmpIndex=1;
tabsa.forEach(function(it){
TABS.push(it + tmpIndex);
tmpIndex = tmpIndex + 1;
});
tmpIndex=1;
tabsq.forEach(function(it){
TABS.push(it + tmpIndex);
tmpIndex = tmpIndex + 1;
});
if (tabsm === true){
TABS.push("磁力");
}
d = pdfa(html, '#dede_content table tbody tr a[href^="ed2k"]');
if (d.length>0){
if (tabse === true){
TABS.push("電驢");
}
log('dygang TABS >>>>>>>>>>>>>>>>>>' + TABS);
@ -53,7 +79,9 @@ log('dygang TABS >>>>>>>>>>>>>>>>>>' + TABS);
log(TABS);
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
LISTS = [];
var d = pdfa(html, '#dede_content table tbody tr');
let d = pdfa(html, '#dede_content table tbody tr a');
let lista = [];
let listq = [];
let listm = [];
let liste = [];
d.forEach(function(it){
@ -62,12 +90,26 @@ d.forEach(function(it){
log('dygang title >>>>>>>>>>>>>>>>>>>>>>>>>>' + title);
log('dygang burl >>>>>>>>>>>>>>>>>>>>>>>>>>' + burl);
let loopresult = title + '$' + burl;
if (burl.startsWith("magnet")){
if (burl.startsWith("https://www.aliyundrive.com/s/")){
burl = "http://127.0.0.1:9978/proxy?do=ali&type=push&url=" + encodeURIComponent(burl);
loopresult = title + '$' + burl;
lista.push(loopresult);
}else if (burl.startsWith("https://pan.quark.cn/s/")){
burl = "http://127.0.0.1:9978/proxy?do=quark&type=push&url=" + encodeURIComponent(burl);
loopresult = title + '$' + burl;
listq.push(loopresult);
}else if (burl.startsWith("magnet")){
listm.push(loopresult);
}else if (burl.startsWith("ed2k")){
liste.push(loopresult);
}
});
lista.forEach(function(it){
LISTS.push([it]);
});
listq.forEach(function(it){
LISTS.push([it]);
});
if (listm.length>0){
LISTS.push(listm);
}

View file

@ -41,23 +41,52 @@ var rule = {
tabs:`js:
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
TABS=[]
let d = pdfa(html, '.movie-introduce p a[href^="magnet"]');
if (d.length > 0){
TABS.push("磁力");
}else{
d = pdfa(html, 'div#down p.down-list3 a[href^="magnet"]');
if (d.length > 0){
TABS.push("磁力");
let tabsa = [];
let tabsq = [];
let tabsm = false;
let tabse = false;
let d = pdfa(html, '.movie-introduce p a');
d.forEach(function(it) {
let burl = pdfh(it, 'a&&href');
if (burl.startsWith("https://www.aliyundrive.com/s/")){
tabsa.push("阿里云盤");
}else if (burl.startsWith("https://pan.quark.cn/s/")){
tabsq.push("夸克云盤");
}else if (burl.startsWith("magnet")){
tabsm = true;
}else if (burl.startsWith("ed2k")){
tabse = true;
}
});
d = pdfa(html, 'div#down p.down-list3 a');
d.forEach(function(it) {
let burl = pdfh(it, 'a&&href');
if (burl.startsWith("https://www.aliyundrive.com/s/")){
tabsa.push("阿里云盤");
}else if (burl.startsWith("https://pan.quark.cn/s/")){
tabsq.push("夸克云盤");
}else if (burl.startsWith("magnet")){
tabsm = true;
}else if (burl.startsWith("ed2k")){
tabse = true;
}
});
let tmpIndex;
tmpIndex=1;
tabsa.forEach(function(it){
TABS.push(it + tmpIndex);
tmpIndex = tmpIndex + 1;
});
tmpIndex=1;
tabsq.forEach(function(it){
TABS.push(it + tmpIndex);
tmpIndex = tmpIndex + 1;
});
if (tabsm === true){
TABS.push("磁力");
}
d = pdfa(html, '.movie-introduce p a[href^="ed2k"]');
if (d.length > 0){
if (tabse === true){
TABS.push("電驢");
}else{
d = pdfa(html, 'div#down p.down-list3 a[href^="ed2k');
if (d.length > 0){
TABS.push("電驢");
}
}
log('jiyingw TABS >>>>>>>>>>>>>>>>>>' + TABS);
`,
@ -65,42 +94,58 @@ log('jiyingw TABS >>>>>>>>>>>>>>>>>>' + TABS);
log(TABS);
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
LISTS = [];
let lista = [];
let listq = [];
let listm = [];
let liste = [];
let d = pdfa(html, '.movie-introduce p');
d.forEach(function(it){
let burl = pdfh(it, 'a[href^="magnet"]&&href');
let title = pdfh(it, 'a[href^="magnet"]&&Text');
log('jiyingw title >>>>>>>>>>>>>>>>>>>>>>>>>>' + title);
log('jiyingw burl >>>>>>>>>>>>>>>>>>>>>>>>>>' + burl);
let burl = pdfh(it, 'a&&href');
let title = pdfh(it, 'a&&Text');
log('dygang title >>>>>>>>>>>>>>>>>>>>>>>>>>' + title);
log('dygang burl >>>>>>>>>>>>>>>>>>>>>>>>>>' + burl);
let loopresult = title + '$' + burl;
listm.push(loopresult);
burl = pdfh(it, 'a[href^="ed2k"]&&href');
title = pdfh(it, 'a[href^="ed2k"]&&Text');
log('jiyingw title >>>>>>>>>>>>>>>>>>>>>>>>>>' + title);
log('jiyingw burl >>>>>>>>>>>>>>>>>>>>>>>>>>' + burl);
if (burl.startsWith("https://www.aliyundrive.com/s/")){
burl = "http://127.0.0.1:9978/proxy?do=ali&type=push&url=" + encodeURIComponent(burl);
loopresult = title + '$' + burl;
lista.push(loopresult);
}else if (burl.startsWith("https://pan.quark.cn/s/")){
burl = "http://127.0.0.1:9978/proxy?do=quark&type=push&url=" + encodeURIComponent(burl);
loopresult = title + '$' + burl;
listq.push(loopresult);
}else if (burl.startsWith("magnet")){
listm.push(loopresult);
}else if (burl.startsWith("ed2k")){
liste.push(loopresult);
}
});
if (listm.length<=0){
d = pdfa(html, 'div#down p.down-list3');
d.forEach(function(it){
let burl = pdfh(it, 'a[href^="magnet"]&&href');
let title = pdfh(it, 'a[href^="magnet"]&&Text');
log('jiyingw title >>>>>>>>>>>>>>>>>>>>>>>>>>' + title);
log('jiyingw burl >>>>>>>>>>>>>>>>>>>>>>>>>>' + burl);
d = pdfa(html, 'div#down p.down-list3 a');
d.forEach(function(it){
let burl = pdfh(it, 'a&&href');
let title = pdfh(it, 'a&&Text');
log('dygang title >>>>>>>>>>>>>>>>>>>>>>>>>>' + title);
log('dygang burl >>>>>>>>>>>>>>>>>>>>>>>>>>' + burl);
let loopresult = title + '$' + burl;
listm.push(loopresult);
burl = pdfh(it, 'a[href^="ed2k"]&&href');
title = pdfh(it, 'a[href^="ed2k"]&&Text');
log('jiyingw title >>>>>>>>>>>>>>>>>>>>>>>>>>' + title);
log('jiyingw burl >>>>>>>>>>>>>>>>>>>>>>>>>>' + burl);
if (burl.startsWith("https://www.aliyundrive.com/s/")){
burl = "http://127.0.0.1:9978/proxy?do=ali&type=push&url=" + encodeURIComponent(burl);
loopresult = title + '$' + burl;
lista.push(loopresult);
}else if (burl.startsWith("https://pan.quark.cn/s/")){
burl = "http://127.0.0.1:9978/proxy?do=quark&type=push&url=" + encodeURIComponent(burl);
loopresult = title + '$' + burl;
listq.push(loopresult);
}else if (burl.startsWith("magnet")){
listm.push(loopresult);
}else if (burl.startsWith("ed2k")){
liste.push(loopresult);
});
}
}
});
lista.forEach(function(it){
LISTS.push([it]);
});
listq.forEach(function(it){
LISTS.push([it]);
});
if (listm.length>0){
LISTS.push(listm);
}

View file

@ -37,12 +37,38 @@ var rule = {
tabs:`js:
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
TABS=[]
let d = pdfa(html, 'ul.down-list&&li a[href^="magnet"]');
if (d.length > 0){
let d = pdfa(html, 'ul.down-list&&li a');
let tabsa = [];
let tabsq = [];
let tabsm = false;
let tabse = false;
d.forEach(function(it) {
let burl = pdfh(it, 'a&&href');
if (burl.startsWith("https://www.aliyundrive.com/s/")){
tabsa.push("阿里云盤");
}else if (burl.startsWith("https://pan.quark.cn/s/")){
tabsq.push("夸克云盤");
}else if (burl.startsWith("magnet")){
tabsm = true;
}else if (burl.startsWith("ed2k")){
tabse = true;
}
});
let tmpIndex;
tmpIndex=1;
tabsa.forEach(function(it){
TABS.push(it + tmpIndex);
tmpIndex = tmpIndex + 1;
});
tmpIndex=1;
tabsq.forEach(function(it){
TABS.push(it + tmpIndex);
tmpIndex = tmpIndex + 1;
});
if (tabsm === true){
TABS.push("磁力");
}
d = pdfa(html, 'ul.down-list&&li a[href^="ed2k"]');
if (d.length > 0){
if (tabse === true){
TABS.push("電驢");
}
log('mp4us TABS >>>>>>>>>>>>>>>>>>' + TABS);
@ -51,21 +77,37 @@ log('mp4us TABS >>>>>>>>>>>>>>>>>>' + TABS);
log(TABS);
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
LISTS = [];
let d = pdfa(html, 'ul.down-list&&li');
let d = pdfa(html, 'ul.down-list&&li a');
let lista = [];
let listq = [];
let listm = [];
let liste = [];
d.forEach(function(it){
let burl = pdfh(it, 'a&&href');
let title = pdfh(it, 'a&&Text');
log('mp4us title >>>>>>>>>>>>>>>>>>>>>>>>>>' + title);
log('mp4us burl >>>>>>>>>>>>>>>>>>>>>>>>>>' + burl);
log('dygang title >>>>>>>>>>>>>>>>>>>>>>>>>>' + title);
log('dygang burl >>>>>>>>>>>>>>>>>>>>>>>>>>' + burl);
let loopresult = title + '$' + burl;
if (burl.startsWith("magnet")){
if (burl.startsWith("https://www.aliyundrive.com/s/")){
burl = "http://127.0.0.1:9978/proxy?do=ali&type=push&url=" + encodeURIComponent(burl);
loopresult = title + '$' + burl;
lista.push(loopresult);
}else if (burl.startsWith("https://pan.quark.cn/s/")){
burl = "http://127.0.0.1:9978/proxy?do=quark&type=push&url=" + encodeURIComponent(burl);
loopresult = title + '$' + burl;
listq.push(loopresult);
}else if (burl.startsWith("magnet")){
listm.push(loopresult);
}else if (burl.startsWith("ed2k")){
liste.push(loopresult);
}
});
lista.forEach(function(it){
LISTS.push([it]);
});
listq.forEach(function(it){
LISTS.push([it]);
});
if (listm.length>0){
LISTS.push(listm.reverse());
}