mirror of
https://github.com/letian1650/N3RD.git
synced 2025-01-24 11:25:14 +08:00
Add files via upload
This commit is contained in:
parent
7a59820e5d
commit
b92d24b3e0
@ -6,17 +6,25 @@ var rule = {
|
||||
filter_url:'{{fl.class}}',
|
||||
filter:{
|
||||
},
|
||||
searchUrl: '',
|
||||
searchable:0,
|
||||
quickSearch:0,
|
||||
searchUrl: '/search.php#searchsubmit=yes&srchtxt=**;post',
|
||||
searchable:2,
|
||||
quickSearch:1,
|
||||
filterable:0,
|
||||
headers:{
|
||||
'User-Agent': 'PC_UA'
|
||||
'User-Agent': 'PC_UA',
|
||||
'Cookie':'http://127.0.0.1:9978/file:///tvbox/JS/lib/4khdr.txt',
|
||||
},
|
||||
timeout:5000,
|
||||
class_name: "4K电影&4K美剧&4K华语&4K动画&4K纪录片&4K日韩印&蓝光电影&蓝光美剧&蓝光华语&蓝光动画&蓝光日韩印",
|
||||
class_url:"3&8&15&6&11&4&29&31&33&32&34",
|
||||
play_parse:false,
|
||||
play_parse:true,
|
||||
play_json:[{
|
||||
re:'*',
|
||||
json:{
|
||||
parse:0,
|
||||
jx:0
|
||||
}
|
||||
}],
|
||||
lazy:'',
|
||||
limit:6,
|
||||
推荐:'ul#waterfall li;a&&title;img&&src;div.auth.cl&&Text;a&&href',
|
||||
@ -27,79 +35,124 @@ var rule = {
|
||||
desc:'td[id^="postmessage_"] font&&Text',
|
||||
content:'td[id^="postmessage_"] font&&Text',
|
||||
tabs:`js:
|
||||
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
|
||||
TABS=[]
|
||||
var d = pdfa(html, 'table.t_table');
|
||||
let magnetIndex=0;
|
||||
let aliIndex=0;
|
||||
d.forEach(function(it) {
|
||||
let burl = pdfh(it, 'a&&href');
|
||||
log("burl >>>>>>" + burl);
|
||||
if (burl.startsWith("https://www.aliyundrive.com/s/")){
|
||||
let result = 'aliyun' + aliIndex;
|
||||
aliIndex = aliIndex + 1;
|
||||
TABS.push(result);
|
||||
}
|
||||
});
|
||||
d.forEach(function(it) {
|
||||
let burl = pdfh(it, 'a&&href');
|
||||
log("burl >>>>>>" + burl);
|
||||
if (burl.startsWith("magnet")){
|
||||
let result = 'magnet' + magnetIndex;
|
||||
magnetIndex = magnetIndex + 1;
|
||||
TABS.push(result);
|
||||
}
|
||||
});
|
||||
log('TABS >>>>>>>>>>>>>>>>>>' + TABS);
|
||||
`,
|
||||
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
|
||||
TABS=[]
|
||||
// log("4khdr 二级 html>>>>>>>>>>" + html);
|
||||
var d = pdfa(html, 'table.t_table');
|
||||
let magnetIndex=0;
|
||||
let aliIndex=0;
|
||||
d.forEach(function(it) {
|
||||
let burl = pdfh(it, 'a&&href');
|
||||
log("burl >>>>>>" + burl);
|
||||
if (burl.startsWith("https://www.aliyundrive.com/s/")){
|
||||
let result = 'aliyun' + aliIndex;
|
||||
aliIndex = aliIndex + 1;
|
||||
TABS.push(result);
|
||||
}
|
||||
});
|
||||
d.forEach(function(it) {
|
||||
let burl = pdfh(it, 'a&&href');
|
||||
log("burl >>>>>>" + burl);
|
||||
if (burl.startsWith("magnet")){
|
||||
let result = 'magnet' + magnetIndex;
|
||||
magnetIndex = magnetIndex + 1;
|
||||
TABS.push(result);
|
||||
}
|
||||
});
|
||||
log('4khdr TABS >>>>>>>>>>>>>>>>>>' + TABS);
|
||||
`,
|
||||
lists:`js:
|
||||
log(TABS);
|
||||
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
|
||||
LISTS = [];
|
||||
var d = pdfa(html, 'table.t_table');
|
||||
TABS.forEach(function(tab) {
|
||||
log('tab >>>>>>>>' + tab);
|
||||
if (/^aliyun/.test(tab)) {
|
||||
let targetindex = parseInt(tab.substring(6));
|
||||
let index = 0;
|
||||
d.forEach(function(it){
|
||||
let burl = pdfh(it, 'a&&href');
|
||||
if (burl.startsWith("https://www.aliyundrive.com/s/")){
|
||||
if (index == targetindex){
|
||||
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) {
|
||||
log('tab >>>>>>>>' + tab);
|
||||
if (/^magnet/.test(tab)) {
|
||||
let targetindex = parseInt(tab.substring(6));
|
||||
let index = 0;
|
||||
d.forEach(function(it){
|
||||
let burl = pdfh(it, 'a&&href');
|
||||
if (burl.startsWith("magnet")){
|
||||
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;
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
`,
|
||||
log(TABS);
|
||||
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
|
||||
LISTS = [];
|
||||
var d = pdfa(html, 'table.t_table');
|
||||
TABS.forEach(function(tab) {
|
||||
log('tab >>>>>>>>' + tab);
|
||||
if (/^aliyun/.test(tab)) {
|
||||
let targetindex = parseInt(tab.substring(6));
|
||||
let index = 0;
|
||||
d.forEach(function(it){
|
||||
let burl = pdfh(it, 'a&&href');
|
||||
if (burl.startsWith("https://www.aliyundrive.com/s/")){
|
||||
if (index == targetindex){
|
||||
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) {
|
||||
log('tab >>>>>>>>' + tab);
|
||||
if (/^magnet/.test(tab)) {
|
||||
let targetindex = parseInt(tab.substring(6));
|
||||
let index = 0;
|
||||
d.forEach(function(it){
|
||||
let burl = pdfh(it, 'a&&href');
|
||||
if (burl.startsWith("magnet")){
|
||||
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;
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
`,
|
||||
|
||||
},
|
||||
搜索:'',
|
||||
一级:'ul#waterfall li;a&&title;img&&src;div.auth.cl&&Text;a&&href',
|
||||
搜索:`js:
|
||||
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
|
||||
if (rule_fetch_params.headers.Cookie.startsWith("http")){
|
||||
rule_fetch_params.headers.Cookie=fetch(rule_fetch_params.headers.Cookie);
|
||||
let cookie = rule_fetch_params.headers.Cookie;
|
||||
setItem(RULE_CK, cookie);
|
||||
};
|
||||
log('4khdr search cookie>>>>>>>>>>>>>>>' + rule_fetch_params.headers.Cookie);
|
||||
let new_host= HOST + '/search.php';
|
||||
let new_html=request(new_host);
|
||||
let formhash = pdfh(new_html, 'input[name="formhash"]&&value');
|
||||
log("4khdr formhash>>>>>>>>>>>>>>>" + formhash);
|
||||
let params = 'formhash=' + formhash + '&searchsubmit=yes&srchtxt=' + KEY;
|
||||
let _fetch_params = JSON.parse(JSON.stringify(rule_fetch_params));
|
||||
let postData = {
|
||||
body: params
|
||||
};
|
||||
Object.assign(_fetch_params, postData);
|
||||
log("4khdr search postData>>>>>>>>>>>>>>>" + JSON.stringify(_fetch_params));
|
||||
let search_html = post( HOST + '/search.php', _fetch_params)
|
||||
//log("4khdr search result>>>>>>>>>>>>>>>" + search_html);
|
||||
let d=[];
|
||||
let dlist = pdfa(search_html, 'div#threadlist ul li');
|
||||
dlist.forEach(function(it){
|
||||
let title = pdfh(it, 'h3&&Text');
|
||||
if (searchObj.quick === true){
|
||||
if (title.includes(KEY)){
|
||||
title = KEY;
|
||||
}
|
||||
}
|
||||
let img = "";
|
||||
let content = pdfh(it, 'p:eq(3)&&Text');
|
||||
let desc = pdfh(it, 'p:eq(2)&&Text');
|
||||
let url = pd(it, 'a&&href', HOST);
|
||||
d.push({
|
||||
title:title,
|
||||
img:img,
|
||||
content:content,
|
||||
desc:desc,
|
||||
url:url
|
||||
})
|
||||
});
|
||||
setResult(d);
|
||||
`,
|
||||
}
|
||||
|
@ -1,23 +1,32 @@
|
||||
var rule = {
|
||||
title:'电影港[磁]',
|
||||
编码:'gb2312',
|
||||
搜索编码:'gb2312',
|
||||
host:'https://www.dygang.tv',
|
||||
homeUrl:'/',
|
||||
url: '/fyclass/index_fypage.htm?',
|
||||
filter_url:'{{fl.class}}',
|
||||
filter:{
|
||||
},
|
||||
searchUrl: '/e/search/index.php#tbname=article&show=title,smalltext&tempid=1&Submit=%CB%D1%CB%F7&keyboard=**;post',
|
||||
searchUrl: '/e/search/index123.php#tempid=1&tbname=article&keyborad=**&show=title%2Csmalltext&Submit=%CB%D1%CB%F7;post',
|
||||
searchable:2,
|
||||
quickSearch:1,
|
||||
quickSearch:0,
|
||||
filterable:0,
|
||||
headers:{
|
||||
'User-Agent': 'PC_UA'
|
||||
'User-Agent': 'MOBILE_UA',
|
||||
'Referer': 'https://www.dygang.tv/'
|
||||
},
|
||||
timeout:5000,
|
||||
class_name:'最新电影&经典高清&国配电影&经典港片&国剧&日韩剧&美剧&综艺&动漫&纪录片&高清原盘&4K高清区&3D电影&电影专题',
|
||||
class_url:'ys&bd&gy&gp&dsj&dsj1&yx&zy&dmq&jilupian&1080p&4K&3d&dyzt',
|
||||
play_parse:false,
|
||||
play_parse:true,
|
||||
play_json:[{
|
||||
re:'*',
|
||||
json:{
|
||||
parse:0,
|
||||
jx:0
|
||||
}
|
||||
}],
|
||||
lazy:'',
|
||||
limit:6,
|
||||
推荐:'div#tl table.border1;img&&alt;img&&src;;a&&href',
|
||||
@ -28,48 +37,83 @@ var rule = {
|
||||
desc:"#dede_content p:eq(3)&&Text",
|
||||
content:"#dede_content p:eq(2)&&Text",
|
||||
tabs:`js:
|
||||
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
|
||||
TABS=[]
|
||||
var d = pdfa(html, '#dede_content&&a');
|
||||
var index=0;
|
||||
d.forEach(function(it) {
|
||||
let burl = pdfh(it, 'a&&href');
|
||||
log("burl >>>>>>" + burl);
|
||||
if (burl.startsWith("magnet")){
|
||||
let result = 'magnet' + index;
|
||||
index = index + 1;
|
||||
TABS.push(result);
|
||||
}
|
||||
});
|
||||
log('TABS >>>>>>>>>>>>>>>>>>' + TABS);
|
||||
`,
|
||||
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
|
||||
TABS=[]
|
||||
var d = pdfa(html, '#dede_content&&a');
|
||||
var index=0;
|
||||
d.forEach(function(it) {
|
||||
let burl = pdfh(it, 'a&&href');
|
||||
log("burl >>>>>>" + burl);
|
||||
if (burl.startsWith("magnet")){
|
||||
let result = 'magnet' + index;
|
||||
index = index + 1;
|
||||
TABS.push(result);
|
||||
}
|
||||
});
|
||||
log('TABS >>>>>>>>>>>>>>>>>>' + TABS);
|
||||
`,
|
||||
lists:`js:
|
||||
log(TABS);
|
||||
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
|
||||
LISTS = [];
|
||||
var d = pdfa(html, '#dede_content&&a');
|
||||
TABS.forEach(function(tab) {
|
||||
log('tab >>>>>>>>' + tab);
|
||||
if (/^magnet/.test(tab)) {
|
||||
let targetindex = parseInt(tab.substring(6));
|
||||
let index = 0;
|
||||
d.forEach(function(it){
|
||||
let burl = pdfh(it, 'a&&href');
|
||||
if (burl.startsWith("magnet")){
|
||||
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;
|
||||
}
|
||||
});
|
||||
log(TABS);
|
||||
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
|
||||
LISTS = [];
|
||||
var d = pdfa(html, '#dede_content&&a');
|
||||
TABS.forEach(function(tab) {
|
||||
log('tab >>>>>>>>' + tab);
|
||||
if (/^magnet/.test(tab)) {
|
||||
let targetindex = parseInt(tab.substring(6));
|
||||
let index = 0;
|
||||
d.forEach(function(it){
|
||||
let burl = pdfh(it, 'a&&href');
|
||||
if (burl.startsWith("magnet")){
|
||||
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;
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
`,
|
||||
|
||||
},
|
||||
搜索:'table.border1;img&&alt;img&&src;img&&alt;a&&href;img&&alt',
|
||||
搜索:`js:
|
||||
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
|
||||
let params = 'tempid=1&tbname=article&keyboard=' + KEY + '&show=title%2Csmalltext&Submit=%CB%D1%CB%F7';
|
||||
let _fetch_params = JSON.parse(JSON.stringify(rule_fetch_params));
|
||||
let postData = {
|
||||
method: "POST",
|
||||
body: params
|
||||
};
|
||||
delete(_fetch_params.headers['Content-Type']);
|
||||
Object.assign(_fetch_params, postData);
|
||||
log("dygang search postData>>>>>>>>>>>>>>>" + JSON.stringify(_fetch_params));
|
||||
let search_html = request( HOST + '/e/search/index123.php', _fetch_params, true);
|
||||
log("dygang search result>>>>>>>>>>>>>>>" + search_html);
|
||||
let d=[];
|
||||
let dlist = pdfa(search_html, 'table.border1');
|
||||
dlist.forEach(function(it){
|
||||
let title = pdfh(it, 'img&&alt');
|
||||
if (searchObj.quick === true){
|
||||
if (title.includes(KEY)){
|
||||
title = KEY;
|
||||
}
|
||||
}
|
||||
let img = pd(it, 'img&&src', HOST);
|
||||
let content = pdfh(it, 'img&&alt');
|
||||
let desc = pdfh(it, 'img&&alt');
|
||||
let url = pd(it, 'a&&href', HOST);
|
||||
d.push({
|
||||
title:title,
|
||||
img:img,
|
||||
content:content,
|
||||
desc:desc,
|
||||
url:url
|
||||
})
|
||||
});
|
||||
setResult(d);
|
||||
`,
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
var rule = {
|
||||
title:'极影网[磁]',
|
||||
host:'http://jiyingw.net',
|
||||
host:'https://www.jiyingw.net',
|
||||
homeUrl:'/',
|
||||
url: '/fyclass/page/fypage?',
|
||||
filter_url:'{{fl.class}}',
|
||||
@ -9,15 +9,23 @@ var rule = {
|
||||
},
|
||||
searchUrl: '/?s=**',
|
||||
searchable:2,
|
||||
quickSearch:1,
|
||||
quickSearch:0,
|
||||
filterable:1,
|
||||
headers:{
|
||||
'User-Agent': 'PC_UA'
|
||||
'User-Agent': 'PC_UA',
|
||||
'Referer': 'https://www.jiyingw.net/'
|
||||
},
|
||||
timeout:5000,
|
||||
class_name:'电影&电视剧&动漫&综艺&影评',
|
||||
class_url:'movie&tv&cartoon&movie/variety&yingping',
|
||||
play_parse:false,
|
||||
play_parse:true,
|
||||
play_json:[{
|
||||
re:'*',
|
||||
json:{
|
||||
parse:0,
|
||||
jx:0
|
||||
}
|
||||
}],
|
||||
lazy:'',
|
||||
limit:6,
|
||||
推荐:'ul#post_container li;a&&title;img&&src;.article entry_post&&Text;a&&href',
|
||||
@ -28,48 +36,73 @@ var rule = {
|
||||
desc:"#post_content&&Text",
|
||||
content:".movie-introduce&&Text",
|
||||
tabs:`js:
|
||||
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
|
||||
TABS=[]
|
||||
var d = pdfa(html, '#down&&a');
|
||||
var index=0;
|
||||
d.forEach(function(it) {
|
||||
let burl = pdfh(it, 'a&&href');
|
||||
log("burl >>>>>>" + burl);
|
||||
if (burl.startsWith("magnet")){
|
||||
let result = 'magnet' + index;
|
||||
index = index + 1;
|
||||
TABS.push(result);
|
||||
}
|
||||
});
|
||||
log('TABS >>>>>>>>>>>>>>>>>>' + TABS);
|
||||
`,
|
||||
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
|
||||
TABS=[]
|
||||
var d = pdfa(html, '.movie-introduce p');
|
||||
var index=1;
|
||||
d.forEach(function(it) {
|
||||
let burl = pdfh(it, 'a[href^="magnet"]&&href');
|
||||
if (burl.startsWith("magnet")){
|
||||
log("jiyingw burl >>>>>>" + burl);
|
||||
let result = 'magnet' + index;
|
||||
index = index + 1;
|
||||
TABS.push(result);
|
||||
}
|
||||
});
|
||||
log('jiyingw TABS >>>>>>>>>>>>>>>>>>' + TABS);
|
||||
`,
|
||||
lists:`js:
|
||||
log(TABS);
|
||||
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
|
||||
LISTS = [];
|
||||
var d = pdfa(html, '#down&&a');
|
||||
TABS.forEach(function(tab) {
|
||||
log('tab >>>>>>>>' + tab);
|
||||
if (/^magnet/.test(tab)) {
|
||||
let targetindex = parseInt(tab.substring(6));
|
||||
let index = 0;
|
||||
d.forEach(function(it){
|
||||
let burl = pdfh(it, 'a&&href');
|
||||
if (burl.startsWith("magnet")){
|
||||
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;
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
`,
|
||||
log(TABS);
|
||||
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
|
||||
LISTS = [];
|
||||
var d = pdfa(html, '.movie-introduce p');
|
||||
TABS.forEach(function(tab) {
|
||||
log('jiyingw tab >>>>>>>>' + tab);
|
||||
if (/^magnet/.test(tab)) {
|
||||
let targetindex = parseInt(tab.substring(6));
|
||||
let index = 1;
|
||||
d.forEach(function(it){
|
||||
let burl = pdfh(it, 'a[href^="magnet"]&&href');
|
||||
if (burl.startsWith("magnet")){
|
||||
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]);
|
||||
}
|
||||
index = index + 1;
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
`,
|
||||
|
||||
},
|
||||
搜索:'#post_container li.post;a.zoom&&title;a.zoom img&&src;.info&&Text;a&&href;.article&&Text',
|
||||
搜索:`js:
|
||||
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
|
||||
let _fetch_params = JSON.parse(JSON.stringify(rule_fetch_params));
|
||||
let search_html=request(HOST + '/?s=' + KEY, _fetch_params);
|
||||
let d=[];
|
||||
let dlist = pdfa(search_html, 'h2');
|
||||
log("jiyingw dlist.length>>>>>>>"+dlist.length);
|
||||
dlist.forEach(function(it){
|
||||
let title = pdfh(it, 'a&&title');
|
||||
//if (searchObj.quick === true){
|
||||
// title = KEY;
|
||||
//}
|
||||
let img = '';
|
||||
let content = title;
|
||||
let desc = title;
|
||||
let url = pd(it, 'a&&href', HOST);
|
||||
d.push({
|
||||
title:title,
|
||||
img:img,
|
||||
content:content,
|
||||
desc:desc,
|
||||
url:url
|
||||
})
|
||||
});
|
||||
setResult(d);
|
||||
`,
|
||||
}
|
||||
|
@ -6,100 +6,142 @@ var rule = {
|
||||
filter_url:'{{fl.class}}',
|
||||
filter:{
|
||||
},
|
||||
searchUrl: '/search/#nobot=1&wd=**;post',
|
||||
searchUrl: '/search/**-1.html',
|
||||
searchable:2,
|
||||
quickSearch:1,
|
||||
quickSearch:0,
|
||||
filterable:0,
|
||||
headers:{
|
||||
'User-Agent': 'PC_UA',
|
||||
'Referer': 'https://www.mp4us.com/',
|
||||
'Cookie':''
|
||||
},
|
||||
timeout:5000,
|
||||
class_name: '动作片&科幻片&爱情片&喜剧片&恐怖片&战争片&剧情片&纪录片&动画片&电视剧',
|
||||
class_url: '1&2&3&4&5&6&7&8&9&10',
|
||||
play_parse:false,
|
||||
play_parse:true,
|
||||
play_json:[{
|
||||
re:'*',
|
||||
json:{
|
||||
parse:0,
|
||||
jx:0
|
||||
}
|
||||
}],
|
||||
lazy:'',
|
||||
limit:6,
|
||||
推荐:'div.index_update li;a&&Text;;b&&Text;a&&href',
|
||||
一级:'div#list_all li;img.lazy&&alt;img.lazy&&data-original;span.rate&&Text;a&&href',
|
||||
推荐:'div.index_update ul li;a&&Text;;b&&Text;a&&href',
|
||||
一级:'div#list_all ul li;img.lazy&&alt;img.lazy&&data-original;span.update_time&&Text;a&&href',
|
||||
二级:{
|
||||
title:"div.article-header h1&&Text",
|
||||
img:"div.article-header div.pic img&&src",
|
||||
desc:'div.article-header div.text&&Text',
|
||||
content:'div.article-related.info p&&Text',
|
||||
tabs:`js:
|
||||
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
|
||||
TABS=[]
|
||||
var d = pdfa(html, 'ul.down-list&&li');
|
||||
let magnetIndex=0;
|
||||
let ed2kIndex=0;
|
||||
d.forEach(function(it) {
|
||||
let burl = pdfh(it, 'a&&href');
|
||||
log("burl >>>>>>" + burl);
|
||||
if (burl.startsWith("magnet")){
|
||||
let result = 'magnet' + magnetIndex;
|
||||
magnetIndex = magnetIndex + 1;
|
||||
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);
|
||||
`,
|
||||
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
|
||||
TABS=[]
|
||||
var d = pdfa(html, 'ul.down-list&&li');
|
||||
let magnetIndex=0;
|
||||
let ed2kIndex=0;
|
||||
d.forEach(function(it) {
|
||||
let burl = pdfh(it, 'a&&href');
|
||||
log("burl >>>>>>" + burl);
|
||||
if (burl.startsWith("magnet")){
|
||||
let result = 'magnet' + magnetIndex;
|
||||
magnetIndex = magnetIndex + 1;
|
||||
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:
|
||||
log(TABS);
|
||||
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
|
||||
LISTS = [];
|
||||
var d = pdfa(html, 'ul.down-list&&li');
|
||||
TABS.forEach(function(tab) {
|
||||
log('tab >>>>>>>>' + tab);
|
||||
if (/^magnet/.test(tab)) {
|
||||
let targetindex = parseInt(tab.substring(6));
|
||||
let index = 0;
|
||||
d.forEach(function(it){
|
||||
let burl = pdfh(it, 'a&&href');
|
||||
if (burl.startsWith("magnet")){
|
||||
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;
|
||||
}
|
||||
});
|
||||
log(TABS);
|
||||
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
|
||||
LISTS = [];
|
||||
var d = pdfa(html, 'ul.down-list&&li');
|
||||
TABS.forEach(function(tab) {
|
||||
log('tab >>>>>>>>' + tab);
|
||||
if (/^magnet/.test(tab)) {
|
||||
let targetindex = parseInt(tab.substring(6));
|
||||
let index = 0;
|
||||
d.forEach(function(it){
|
||||
let burl = pdfh(it, 'a&&href');
|
||||
if (burl.startsWith("magnet")){
|
||||
if (index == targetindex){
|
||||
let title = pdfh(it, 'a&&Text');
|
||||
log('title >>>>>>>>>>>>>>>>>>>>>>>>>>' + title);
|
||||
log('burl >>>>>>>>>>>>>>>>>>>>>>>>>>' + burl);
|
||||
let loopresult = title + '$' + burl;
|
||||
LISTS.push([loopresult]);
|
||||
}
|
||||
});
|
||||
TABS.forEach(function(tab) {
|
||||
log('tab >>>>>>>>' + tab);
|
||||
if (/^ed2k/.test(tab)) {
|
||||
let targetindex = parseInt(tab.substring(4));
|
||||
let index = 0;
|
||||
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;
|
||||
}
|
||||
});
|
||||
index = index + 1;
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
TABS.forEach(function(tab) {
|
||||
log('tab >>>>>>>>' + tab);
|
||||
if (/^ed2k/.test(tab)) {
|
||||
let targetindex = parseInt(tab.substring(4));
|
||||
let index = 0;
|
||||
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;
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
`,
|
||||
|
||||
},
|
||||
搜索:'div#list_all li;img.lazy&&alt;img.lazy&&src;div.text_info h2&&Text;a&&href;p.info&&Text',
|
||||
搜索:`js:
|
||||
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
|
||||
if (rule_fetch_params.headers.Cookie.startsWith("http")){
|
||||
rule_fetch_params.headers.Cookie=fetch(rule_fetch_params.headers.Cookie);
|
||||
let cookie = rule_fetch_params.headers.Cookie;
|
||||
setItem(RULE_CK, cookie);
|
||||
};
|
||||
log('mp4us seach cookie>>>>>>>>>>>>>' + rule_fetch_params.headers.Cookie);
|
||||
let _fetch_params = JSON.parse(JSON.stringify(rule_fetch_params));
|
||||
//log("mp4us search params>>>>>>>>>>>>>>>" + JSON.stringify(_fetch_params));
|
||||
let search_html = request( HOST + '/search/' + KEY + '-1.html', _fetch_params)
|
||||
//log("mp4us search result>>>>>>>>>>>>>>>" + search_html);
|
||||
let d=[];
|
||||
//'div#list_all li;img.lazy&&alt;img.lazy&&src;div.text_info h2&&Text;a&&href;p.info&&Text',
|
||||
let dlist = pdfa(search_html, 'div#list_all li');
|
||||
dlist.forEach(function(it){
|
||||
let title = pdfh(it, 'img.lazy&&alt');
|
||||
if (searchObj.quick === true){
|
||||
if (title.includes(KEY)){
|
||||
title = KEY;
|
||||
}
|
||||
}
|
||||
let img = pd(it, 'img.lazy&&src', HOST);
|
||||
let content = pdfh(it, 'div.text_info h2&&Text');
|
||||
let desc = pdfh(it, 'p.info&&Text');
|
||||
let url = pd(it, 'a&&href', HOST);
|
||||
d.push({
|
||||
title:title,
|
||||
img:img,
|
||||
content:content,
|
||||
desc:desc,
|
||||
url:url
|
||||
})
|
||||
});
|
||||
setResult(d);
|
||||
`,
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user