pull/2/head
chuqiuyu 3 years ago
parent 3bc896baf4
commit cf25121f7a

@ -37,76 +37,52 @@ var rule = {
tabs:`js: tabs:`js:
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd; pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
TABS=[] TABS=[]
// log("4khdr 二级 html>>>>>>>>>>" + html); let d = pdfa(html, 'table.t_table');
var d = pdfa(html, 'table.t_table');
let magnetIndex=1;
let aliIndex=1; let aliIndex=1;
d.forEach(function(it) { d.forEach(function(it) {
let burl = pdfh(it, 'a&&href'); let burl = pdfh(it, 'a&&href');
log("burl >>>>>>" + burl); log("burl >>>>>>" + burl);
if (burl.startsWith("https://www.aliyundrive.com/s/")){ if (burl.startsWith("https://www.aliyundrive.com/s/")){
let result = 'aliyun' + aliIndex; TABS.push("aliyun"+aliIndex);
aliIndex = aliIndex + 1; aliIndex = aliIndex + 1;
TABS.push(result); }
}
}); });
d.forEach(function(it) { d = pdfa(html, 'table.t_table a[href^="magnet"]');
let burl = pdfh(it, 'a&&href'); if (d.length>0){
log("burl >>>>>>" + burl); TABS.push("磁力");
if (burl.startsWith("magnet")){
let result = 'magnet' + magnetIndex;
magnetIndex = magnetIndex + 1;
TABS.push(result);
} }
});
log('4khdr TABS >>>>>>>>>>>>>>>>>>' + TABS); log('4khdr TABS >>>>>>>>>>>>>>>>>>' + TABS);
`, `,
lists:`js: lists:`js:
log(TABS); log(TABS);
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd; pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
LISTS = []; LISTS = [];
var d = pdfa(html, 'table.t_table'); let d = pdfa(html, 'table.t_table');
TABS.forEach(function(tab) { d.forEach(function(it){
log('tab >>>>>>>>' + tab); let burl = pdfh(it, 'a&&href');
if (/^aliyun/.test(tab)) { if (burl.startsWith("https://www.aliyundrive.com/s/")){
let targetindex = parseInt(tab.substring(6)); let title = pdfh(it, 'a&&Text');
let index = 1; log('title >>>>>>>>>>>>>>>>>>>>>>>>>>' + title);
d.forEach(function(it){ burl = "http://127.0.0.1:9978/proxy?do=ali&type=push&url=" + encodeURIComponent(burl);
let burl = pdfh(it, 'a&&href'); log('burl >>>>>>>>>>>>>>>>>>>>>>>>>>' + burl);
if (burl.startsWith("https://www.aliyundrive.com/s/")){ let loopresult = title + '$' + burl;
if (index === targetindex){ LISTS.push([loopresult]);
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);
let loopresult = title + '$' + burl;
LISTS.push([loopresult]);
}
index = index + 1;
}
});
}
}); });
TABS.forEach(function(tab) { let listm = [];
log('tab >>>>>>>>' + tab); d.forEach(function(it){
if (/^magnet/.test(tab)) { let burl = pdfh(it, 'a&&href');
let targetindex = parseInt(tab.substring(6)); if (burl.startsWith("magnet")){
let index = 1; let title = pdfh(it, 'a&&Text');
d.forEach(function(it){ log('title >>>>>>>>>>>>>>>>>>>>>>>>>>' + title);
let burl = pdfh(it, 'a&&href'); log('burl >>>>>>>>>>>>>>>>>>>>>>>>>>' + burl);
if (burl.startsWith("magnet")){ let loopresult = title + '$' + burl;
if (index === targetindex){ listm.push(loopresult);
let title = pdfh(it, 'a&&Text'); }
log('title >>>>>>>>>>>>>>>>>>>>>>>>>>' + title);
log('burl >>>>>>>>>>>>>>>>>>>>>>>>>>' + burl);
let loopresult = title + '$' + burl;
LISTS.push([loopresult]);
}
index = index + 1;
}
});
}
}); });
if (listm.length>0){
LISTS.push(listm);
}
`, `,
}, },

@ -20,7 +20,7 @@ var rule = {
}, },
timeout:5000, timeout:5000,
class_name:'电影&剧集&豆瓣电影Top250&IMDB Top250&高分悬疑片&高分喜剧片&高分传记片&高分爱情片&高分犯罪片&高分恐怖片&高分冒险片&高分武侠片&高分奇幻片&高分历史片&高分战争片&高分歌舞片&高分灾难片&高分情色片&高分西部片&高分音乐片&高分科幻片&高分动作片&高分动画片&高分纪录片&冷门佳片', class_name:'电影&剧集&豆瓣电影Top250&IMDB Top250&高分悬疑片&高分喜剧片&高分传记片&高分爱情片&高分犯罪片&高分恐怖片&高分冒险片&高分武侠片&高分奇幻片&高分历史片&高分战争片&高分歌舞片&高分灾难片&高分情色片&高分西部片&高分音乐片&高分科幻片&高分动作片&高分动画片&高分纪录片&冷门佳片',
class_url:'1&2&/top250/&/s/imdbtop250/&/ssuspense/&/s/comedy/&/s/biopic/&/s/romance/&/s/crime/&/s/horror/&/s/adventure/&/s/martial/&/s/fantasy/&/s/history/&/s/war/&/s/musical/&/s/disaster/&/s/erotic/&/s/west/&/s/music/&/s/sci-fi/&/s/action/&/s/animation/&/s/documentary/&/s/unpopular/', class_url:'1&2&/top250/&/s/imdbtop250/&/s/suspense/&/s/comedy/&/s/biopic/&/s/romance/&/s/crime/&/s/horror/&/s/adventure/&/s/martial/&/s/fantasy/&/s/history/&/s/war/&/s/musical/&/s/disaster/&/s/erotic/&/s/west/&/s/music/&/s/sci-fi/&/s/action/&/s/animation/&/s/documentary/&/s/unpopular/',
play_parse:false, play_parse:false,
lazy:'', lazy:'',
limit:6, limit:6,

@ -39,44 +39,41 @@ var rule = {
tabs:`js: tabs:`js:
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd; pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
TABS=[] TABS=[]
var d = pdfa(html, '#dede_content table tbody tr'); var d = pdfa(html, '#dede_content table tbody tr a[href^="magnet"]');
var index=1; if (d.length>0){
d.forEach(function(it) { TABS.push("磁力");
let burl = pdfh(it, 'a&&href'); }
log("burl >>>>>>" + burl); d = pdfa(html, '#dede_content table tbody tr a[href^="ed2k"]');
if (burl.startsWith("magnet")){ if (d.length>0){
let result = 'magnet' + index; TABS.push("電驢");
index = index + 1; }
TABS.push(result); log('dygang TABS >>>>>>>>>>>>>>>>>>' + TABS);
}
});
log('TABS >>>>>>>>>>>>>>>>>>' + TABS);
`, `,
lists:`js: lists:`js:
log(TABS); log(TABS);
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd; pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
LISTS = []; LISTS = [];
var d = pdfa(html, '#dede_content table tbody tr'); var d = pdfa(html, '#dede_content table tbody tr');
TABS.forEach(function(tab) { let listm = [];
log('tab >>>>>>>>' + tab); let liste = [];
if (/^magnet/.test(tab)) { d.forEach(function(it){
let targetindex = parseInt(tab.substring(6)); let burl = pdfh(it, 'a&&href');
let index = 1; let title = pdfh(it, 'a&&Text');
d.forEach(function(it){ log('dygang title >>>>>>>>>>>>>>>>>>>>>>>>>>' + title);
let burl = pdfh(it, 'a&&href'); log('dygang burl >>>>>>>>>>>>>>>>>>>>>>>>>>' + burl);
if (burl.startsWith("magnet")){ let loopresult = title + '$' + burl;
if (index === targetindex){ if (burl.startsWith("magnet")){
let title = pdfh(it, 'a&&Text'); listm.push(loopresult);
log('title >>>>>>>>>>>>>>>>>>>>>>>>>>' + title); }else if (burl.startsWith("ed2k")){
log('burl >>>>>>>>>>>>>>>>>>>>>>>>>>' + burl); liste.push(loopresult);
let loopresult = title + '$' + burl;
LISTS.push([loopresult]);
}
index = index + 1;
}
});
} }
}); });
if (listm.length>0){
LISTS.push(listm);
}
if (liste.length>0){
LISTS.push(liste);
}
`, `,
}, },

@ -41,78 +41,72 @@ var rule = {
tabs:`js: tabs:`js:
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd; pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
TABS=[] TABS=[]
var d = pdfa(html, '.movie-introduce p'); let d = pdfa(html, '.movie-introduce p a[href^="magnet"]');
var index=0; if (d.length > 0){
d.forEach(function(it) { TABS.push("磁力");
let burl = pdfh(it, 'a[href^="magnet"]&&href'); }else{
if (burl.startsWith("magnet")){ d = pdfa(html, 'div#down p.down-list3 a[href^="magnet"]');
log("jiyingw burl >>>>>>" + burl); if (d.length > 0){
index = index + 1; TABS.push("磁力");
let result = 'magnet' + index; }
TABS.push(result); }
d = pdfa(html, '.movie-introduce p a[href^="ed2k"]');
if (d.length > 0){
TABS.push("電驢");
}else{
d = pdfa(html, 'div#down p.down-list3 a[href^="ed2k');
if (d.length > 0){
TABS.push("電驢");
} }
});
if (index === 0){
d = pdfa(html, 'div#down p.down-list3');
index=0;
d.forEach(function(it) {
let burl = pdfh(it, 'a[href^="magnet"]&&href');
if (burl.startsWith("magnet")){
log("jiyingw burl >>>>>>" + burl);
index = index + 1;
let result = 'magnet' + index;
TABS.push(result);
}
});
} }
log('jiyingw TABS >>>>>>>>>>>>>>>>>>' + TABS); log('jiyingw TABS >>>>>>>>>>>>>>>>>>' + TABS);
`, `,
lists:`js: lists:`js:
log(TABS); log(TABS);
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd; pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
LISTS = []; LISTS = [];
var d = pdfa(html, '.movie-introduce p'); let listm = [];
var secondinit=false; let liste = [];
TABS.forEach(function(tab) { let d = pdfa(html, '.movie-introduce p');
log('jiyingw tab >>>>>>>>' + tab); d.forEach(function(it){
if (/^magnet/.test(tab)) { let burl = pdfh(it, 'a[href^="magnet"]&&href');
let targetindex = parseInt(tab.substring(6)); let title = pdfh(it, 'a[href^="magnet"]&&Text');
let index = 0; log('jiyingw title >>>>>>>>>>>>>>>>>>>>>>>>>>' + title);
d.forEach(function(it){ log('jiyingw burl >>>>>>>>>>>>>>>>>>>>>>>>>>' + burl);
let burl = pdfh(it, 'a[href^="magnet"]&&href'); let loopresult = title + '$' + burl;
if (burl.startsWith("magnet")){ listm.push(loopresult);
index = index + 1;
if (index === targetindex){ burl = pdfh(it, 'a[href^="ed2k"]&&href');
let title = pdfh(it, 'a[href^="magnet"]&&Text'); title = pdfh(it, 'a[href^="ed2k"]&&Text');
log('jiyingw title >>>>>>>>>>>>>>>>>>>>>>>>>>' + title); log('jiyingw title >>>>>>>>>>>>>>>>>>>>>>>>>>' + title);
log('jiyingw burl >>>>>>>>>>>>>>>>>>>>>>>>>>' + burl); log('jiyingw burl >>>>>>>>>>>>>>>>>>>>>>>>>>' + burl);
let loopresult = title + '$' + burl; loopresult = title + '$' + burl;
LISTS.push([loopresult]); liste.push(loopresult);
}
}
});
if (index === 0){
if (secondinit === false){
d = pdfa(html, 'div#down p.down-list3');
secondinit = true;
}
d.forEach(function(it){
let burl = pdfh(it, 'a[href^="magnet"]&&href');
if (burl.startsWith("magnet")){
index = index + 1;
if (index === targetindex){
let title = pdfh(it, 'a[href^="magnet"]&&Text');
log('jiyingw title >>>>>>>>>>>>>>>>>>>>>>>>>>' + title);
log('jiyingw burl >>>>>>>>>>>>>>>>>>>>>>>>>>' + burl);
let loopresult = title + '$' + burl;
LISTS.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);
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);
loopresult = title + '$' + burl;
liste.push(loopresult);
});
}
if (listm.length>0){
LISTS.push(listm);
}
if (liste.length>0){
LISTS.push(liste);
}
`, `,
}, },

@ -37,74 +37,41 @@ var rule = {
tabs:`js: tabs:`js:
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd; pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
TABS=[] TABS=[]
var d = pdfa(html, 'ul.down-list&&li'); let d = pdfa(html, 'ul.down-list&&li a[href^="magnet"]');
let magnetIndex=1; if (d.length > 0){
let ed2kIndex=1; TABS.push("磁力");
d.forEach(function(it) { }
let burl = pdfh(it, 'a&&href'); d = pdfa(html, 'ul.down-list&&li a[href^="ed2k"]');
log("burl >>>>>>" + burl); if (d.length > 0){
if (burl.startsWith("magnet")){ TABS.push("電驢");
let result = 'magnet' + magnetIndex; }
magnetIndex = magnetIndex + 1; log('mp4us TABS >>>>>>>>>>>>>>>>>>' + TABS);
TABS.push(result);
}
});
d.forEach(function(it) {
let burl = pdfh(it, 'a&&href');
log("burl >>>>>>" + burl);
if (burl.startsWith("ed2k")){
let result = 'ed2k' + ed2kIndex;
ed2kIndex = ed2kIndex + 1;
TABS.push(result);
}
});
log('TABS >>>>>>>>>>>>>>>>>>' + TABS);
`, `,
lists:`js: lists:`js:
log(TABS); log(TABS);
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd; pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
LISTS = []; LISTS = [];
var d = pdfa(html, 'ul.down-list&&li'); let d = pdfa(html, 'ul.down-list&&li');
TABS.forEach(function(tab) { let listm = [];
log('tab >>>>>>>>' + tab); let liste = [];
if (/^magnet/.test(tab)) { d.forEach(function(it){
let targetindex = parseInt(tab.substring(6)); let burl = pdfh(it, 'a&&href');
let index = 1; let title = pdfh(it, 'a&&Text');
d.forEach(function(it){ log('mp4us title >>>>>>>>>>>>>>>>>>>>>>>>>>' + title);
let burl = pdfh(it, 'a&&href'); log('mp4us burl >>>>>>>>>>>>>>>>>>>>>>>>>>' + burl);
if (burl.startsWith("magnet")){ let loopresult = title + '$' + burl;
if (index === targetindex){ if (burl.startsWith("magnet")){
let title = pdfh(it, 'a&&Text'); listm.push(loopresult);
log('title >>>>>>>>>>>>>>>>>>>>>>>>>>' + title); }else if (burl.startsWith("ed2k")){
log('burl >>>>>>>>>>>>>>>>>>>>>>>>>>' + burl); liste.push(loopresult);
let loopresult = title + '$' + burl;
LISTS.push([loopresult]);
}
index = index + 1;
}
});
}
});
TABS.forEach(function(tab) {
log('tab >>>>>>>>' + tab);
if (/^ed2k/.test(tab)) {
let targetindex = parseInt(tab.substring(4));
let index = 1;
d.forEach(function(it){
let burl = pdfh(it, 'a&&href');
if (burl.startsWith("ed2k")){
if (index === targetindex){
let title = pdfh(it, 'a&&Text');
log('title >>>>>>>>>>>>>>>>>>>>>>>>>>' + title);
log('burl >>>>>>>>>>>>>>>>>>>>>>>>>>' + burl);
let loopresult = title + '$' + burl;
LISTS.push([loopresult]);
}
index = index + 1;
}
});
} }
}); });
if (listm.length>0){
LISTS.push(listm.reverse());
}
if (liste.length>0){
LISTS.push(liste.reverse());
}
`, `,
}, },

Loading…
Cancel
Save