update PG
This commit is contained in:
parent
e7b8c6e431
commit
cadd3a8387
@ -13,10 +13,10 @@
|
|||||||
{"key":"drpy_js_ikanbot3","name":"爱姬","type":3,"api":"./lib/drpy2.min.js","searchable":1,"quickSearch":1,"changeable":1,"ext":"./js/ikanbot3.js"},
|
{"key":"drpy_js_ikanbot3","name":"爱姬","type":3,"api":"./lib/drpy2.min.js","searchable":1,"quickSearch":1,"changeable":1,"ext":"./js/ikanbot3.js"},
|
||||||
{"key":"drpy_js_荐片","name":"荐片","type":3,"api":"./lib/drpy2.min.js","searchable":1,"quickSearch":1,"changeable":1,"ext":"./js/荐片.js"},
|
{"key":"drpy_js_荐片","name":"荐片","type":3,"api":"./lib/drpy2.min.js","searchable":1,"quickSearch":1,"changeable":1,"ext":"./js/荐片.js"},
|
||||||
|
|
||||||
{"key":"drpy_js_4KHDR","name":"4KHDR*","type":3,"api":"./lib/drpy2.min.js","ext":"./js/4khdr.js","playerType":"1", "searchable":1, "quickSearch":1, "changeable":0},
|
{"key":"drpy_js_4KHDR","name":"4KHDR*","type":3,"api":"./lib/drpy2.min.js","ext":"./js/4khdr.js","playerType":"1", "searchable":1, "quickSearch":1, "changeable":1},
|
||||||
{"key":"drpy_js_极影网","name":"极影网*","type":3,"api":"./lib/drpy2.min.js","ext":"./js/jiyingw.js","playerType":"1", "searchable":1, "quickSearch":1, "changeable":0},
|
{"key":"drpy_js_极影网","name":"极影网*","type":3,"api":"./lib/drpy2.min.js","ext":"./js/jiyingw.js","playerType":"1", "searchable":1, "quickSearch":1, "changeable":1},
|
||||||
{"key":"drpy_js_MP4US","name":"MP4电影*","type":3,"api":"./lib/drpy2.min.js","ext":"./js/mp4us.js","playerType":"1", "searchable":1, "quickSearch":1, "changeable":0},
|
{"key":"drpy_js_MP4US","name":"MP4电影*","type":3,"api":"./lib/drpy2.min.js","ext":"./js/mp4us.js","playerType":"1", "searchable":1, "quickSearch":1, "changeable":1},
|
||||||
{"key":"drpy_js_电影港","name":"电影港*","type":3,"api":"./lib/drpy2.min.js","ext":"./js/dygang.js","playerType":"1", "searchable":1, "quickSearch":1, "changeable":0},
|
{"key":"drpy_js_电影港","name":"电影港*","type":3,"api":"./lib/drpy2.min.js","ext":"./js/dygang.js","playerType":"1", "searchable":1, "quickSearch":1, "changeable":1},
|
||||||
|
|
||||||
{"key":"csp_DiDuan" ,"name":"低端","type":3,"api":"csp_Ddys","searchable":1,"quickSearch":1,"changeable":1,"ext":"$$$socks5://192.168.5.227:4592"},
|
{"key":"csp_DiDuan" ,"name":"低端","type":3,"api":"csp_Ddys","searchable":1,"quickSearch":1,"changeable":1,"ext":"$$$socks5://192.168.5.227:4592"},
|
||||||
{"key":"csp_DuoX","name":"多线","type":3,"api":"csp_DuoX","searchable":1,"quickSearch":1,"changeable":1},
|
{"key":"csp_DuoX","name":"多线","type":3,"api":"csp_DuoX","searchable":1,"quickSearch":1,"changeable":1},
|
||||||
|
|||||||
@ -7,7 +7,7 @@
|
|||||||
],
|
],
|
||||||
"wallpaper":"https://liu.chuqiuyu.tk",
|
"wallpaper":"https://liu.chuqiuyu.tk",
|
||||||
"sites":[
|
"sites":[
|
||||||
{"key":"AList","name":"AList","type":3,"api":"csp_AList","searchable":1,"changeable":0,"ext":{"drives":[{"name":"SOD","server":"https://a.sodaz.xyz"},{"name":"AV","server":"https://a74d291e-3b91-45a5-9ec6-9f08a9178e59.id.repl.co"}]}},
|
{"key":"AList","name":"AList","type":3,"api":"csp_AList","searchable":1,"changeable":0,"ext":{"drives":[{"name":"罗汉果","server":"https://lala-ofbip.run.goorm.site/"}]}},
|
||||||
{"key":"泥巴","name":"泥巴","type":3,"api":"csp_NiNi","searchable":1,"ext":"1;socks5://192.168.5.227:4592"},
|
{"key":"泥巴","name":"泥巴","type":3,"api":"csp_NiNi","searchable":1,"ext":"1;socks5://192.168.5.227:4592"},
|
||||||
{"key":"量子","name":"量子","type":0,"api":"http://127.0.0.1:10079/?thread=0&proxy=socks5://192.168.5.227:4592&url=https://cj.lziapi.com/api.php/provide/vod/at/xml/","playUrl": "json:http://127.0.0.1:10079/parse/?thread=0&proxy=socks5://192.168.5.227:4592&url=","searchable":1,"changeable":1,"categories":["伦理片"]},
|
{"key":"量子","name":"量子","type":0,"api":"http://127.0.0.1:10079/?thread=0&proxy=socks5://192.168.5.227:4592&url=https://cj.lziapi.com/api.php/provide/vod/at/xml/","playUrl": "json:http://127.0.0.1:10079/parse/?thread=0&proxy=socks5://192.168.5.227:4592&url=","searchable":1,"changeable":1,"categories":["伦理片"]},
|
||||||
{"key":"非凡","name":"非凡","type":0,"api":"http://127.0.0.1:10079/?thread=0&proxy=socks5://192.168.5.227:4592&url=http://cj.ffzyapi.com/api.php/provide/vod/at/xml/","playUrl": "json:http://127.0.0.1:10079/parse/?thread=0&proxy=socks5://192.168.5.227:4592&url=","searchable":1,"changeable":1,"categories":["伦理片"]},
|
{"key":"非凡","name":"非凡","type":0,"api":"http://127.0.0.1:10079/?thread=0&proxy=socks5://192.168.5.227:4592&url=http://cj.ffzyapi.com/api.php/provide/vod/at/xml/","playUrl": "json:http://127.0.0.1:10079/parse/?thread=0&proxy=socks5://192.168.5.227:4592&url=","searchable":1,"changeable":1,"categories":["伦理片"]},
|
||||||
|
|||||||
236
js/4khdr.js
236
js/4khdr.js
@ -35,132 +35,124 @@ var rule = {
|
|||||||
desc:'td[id^="postmessage_"] font&&Text',
|
desc:'td[id^="postmessage_"] font&&Text',
|
||||||
content:'td[id^="postmessage_"] font&&Text',
|
content:'td[id^="postmessage_"] font&&Text',
|
||||||
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);
|
// log("4khdr 二级 html>>>>>>>>>>" + html);
|
||||||
var d = pdfa(html, 'table.t_table');
|
var d = pdfa(html, 'table.t_table');
|
||||||
let magnetIndex=0;
|
let magnetIndex=0;
|
||||||
let aliIndex=0;
|
let aliIndex=0;
|
||||||
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;
|
let result = 'aliyun' + aliIndex;
|
||||||
aliIndex = aliIndex + 1;
|
aliIndex = aliIndex + 1;
|
||||||
TABS.push(result);
|
TABS.push(result);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
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("magnet")){
|
if (burl.startsWith("magnet")){
|
||||||
let result = 'magnet' + magnetIndex;
|
let result = 'magnet' + magnetIndex;
|
||||||
magnetIndex = magnetIndex + 1;
|
magnetIndex = magnetIndex + 1;
|
||||||
TABS.push(result);
|
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');
|
var d = pdfa(html, 'table.t_table');
|
||||||
TABS.forEach(function(tab) {
|
TABS.forEach(function(tab) {
|
||||||
log('tab >>>>>>>>' + tab);
|
log('tab >>>>>>>>' + tab);
|
||||||
if (/^aliyun/.test(tab)) {
|
if (/^aliyun/.test(tab)) {
|
||||||
let targetindex = parseInt(tab.substring(6));
|
let targetindex = parseInt(tab.substring(6));
|
||||||
let index = 0;
|
let index = 0;
|
||||||
d.forEach(function(it){
|
d.forEach(function(it){
|
||||||
let burl = pdfh(it, 'a&&href');
|
let burl = pdfh(it, 'a&&href');
|
||||||
if (burl.startsWith("https://www.aliyundrive.com/s/")){
|
if (burl.startsWith("https://www.aliyundrive.com/s/")){
|
||||||
if (index == targetindex){
|
if (index == targetindex){
|
||||||
let title = pdfh(it, 'a&&Text');
|
let title = pdfh(it, 'a&&Text');
|
||||||
log('title >>>>>>>>>>>>>>>>>>>>>>>>>>' + title);
|
log('title >>>>>>>>>>>>>>>>>>>>>>>>>>' + title);
|
||||||
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);
|
||||||
log('burl >>>>>>>>>>>>>>>>>>>>>>>>>>' + burl);
|
log('burl >>>>>>>>>>>>>>>>>>>>>>>>>>' + burl);
|
||||||
let loopresult = title + '$' + burl;
|
let loopresult = title + '$' + burl;
|
||||||
LISTS.push([loopresult]);
|
LISTS.push([loopresult]);
|
||||||
}
|
}
|
||||||
index = index + 1;
|
index = index + 1;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
TABS.forEach(function(tab) {
|
TABS.forEach(function(tab) {
|
||||||
log('tab >>>>>>>>' + tab);
|
log('tab >>>>>>>>' + tab);
|
||||||
if (/^magnet/.test(tab)) {
|
if (/^magnet/.test(tab)) {
|
||||||
let targetindex = parseInt(tab.substring(6));
|
let targetindex = parseInt(tab.substring(6));
|
||||||
let index = 0;
|
let index = 0;
|
||||||
d.forEach(function(it){
|
d.forEach(function(it){
|
||||||
let burl = pdfh(it, 'a&&href');
|
let burl = pdfh(it, 'a&&href');
|
||||||
if (burl.startsWith("magnet")){
|
if (burl.startsWith("magnet")){
|
||||||
if (index == targetindex){
|
if (index == targetindex){
|
||||||
let title = pdfh(it, 'a&&Text');
|
let title = pdfh(it, 'a&&Text');
|
||||||
log('title >>>>>>>>>>>>>>>>>>>>>>>>>>' + title);
|
log('title >>>>>>>>>>>>>>>>>>>>>>>>>>' + title);
|
||||||
log('burl >>>>>>>>>>>>>>>>>>>>>>>>>>' + burl);
|
log('burl >>>>>>>>>>>>>>>>>>>>>>>>>>' + burl);
|
||||||
let loopresult = title + '$' + burl;
|
let loopresult = title + '$' + burl;
|
||||||
LISTS.push([loopresult]);
|
LISTS.push([loopresult]);
|
||||||
}
|
}
|
||||||
index = index + 1;
|
index = index + 1;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
`,
|
`,
|
||||||
|
|
||||||
},
|
},
|
||||||
一级:'ul#waterfall li;a&&title;img&&src;div.auth.cl&&Text;a&&href',
|
一级:'ul#waterfall li;a&&title;img&&src;div.auth.cl&&Text;a&&href',
|
||||||
搜索:`js:
|
搜索:`js:
|
||||||
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
|
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
|
||||||
if (rule_fetch_params.headers.Cookie.startsWith("http")){
|
if (rule_fetch_params.headers.Cookie.startsWith("http")){
|
||||||
rule_fetch_params.headers.Cookie=fetch(rule_fetch_params.headers.Cookie);
|
rule_fetch_params.headers.Cookie=fetch(rule_fetch_params.headers.Cookie);
|
||||||
let cookie = rule_fetch_params.headers.Cookie;
|
let cookie = rule_fetch_params.headers.Cookie;
|
||||||
setItem(RULE_CK, cookie);
|
setItem(RULE_CK, cookie);
|
||||||
};
|
};
|
||||||
log('4khdr search cookie>>>>>>>>>>>>>>>' + rule_fetch_params.headers.Cookie);
|
log('4khdr search cookie>>>>>>>>>>>>>>>' + rule_fetch_params.headers.Cookie);
|
||||||
let new_host= HOST + '/search.php';
|
let new_host= HOST + '/search.php';
|
||||||
let new_html=request(new_host);
|
let new_html=request(new_host);
|
||||||
let formhash = pdfh(new_html, 'input[name="formhash"]&&value');
|
let formhash = pdfh(new_html, 'input[name="formhash"]&&value');
|
||||||
log("4khdr formhash>>>>>>>>>>>>>>>" + formhash);
|
log("4khdr formhash>>>>>>>>>>>>>>>" + formhash);
|
||||||
let params = 'formhash=' + formhash + '&searchsubmit=yes&srchtxt=' + KEY;
|
let params = 'formhash=' + formhash + '&searchsubmit=yes&srchtxt=' + KEY;
|
||||||
let _fetch_params = JSON.parse(JSON.stringify(rule_fetch_params));
|
let _fetch_params = JSON.parse(JSON.stringify(rule_fetch_params));
|
||||||
let postData = {
|
let postData = {
|
||||||
body: params
|
body: params
|
||||||
};
|
};
|
||||||
Object.assign(_fetch_params, postData);
|
Object.assign(_fetch_params, postData);
|
||||||
log("4khdr search postData>>>>>>>>>>>>>>>" + JSON.stringify(_fetch_params));
|
log("4khdr search postData>>>>>>>>>>>>>>>" + JSON.stringify(_fetch_params));
|
||||||
let search_html = post( HOST + '/search.php', _fetch_params)
|
let search_html = post( HOST + '/search.php', _fetch_params)
|
||||||
//log("4khdr search result>>>>>>>>>>>>>>>" + search_html);
|
//log("4khdr search result>>>>>>>>>>>>>>>" + search_html);
|
||||||
let d=[];
|
let d=[];
|
||||||
let dlist = pdfa(search_html, 'div#threadlist ul li');
|
let dlist = pdfa(search_html, 'div#threadlist ul li');
|
||||||
dlist.forEach(function(it){
|
dlist.forEach(function(it){
|
||||||
let title = pdfh(it, 'h3&&Text');
|
let title = pdfh(it, 'h3&&Text');
|
||||||
if (searchObj.quick === true){
|
if (searchObj.quick === true){
|
||||||
if (title.includes(KEY)){
|
if (title.includes(KEY)){
|
||||||
title = KEY;
|
title = KEY;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
let img = "";
|
let img = "";
|
||||||
let content = pdfh(it, 'p:eq(3)&&Text');
|
let content = pdfh(it, 'p:eq(3)&&Text');
|
||||||
let desc = pdfh(it, 'p:eq(2)&&Text');
|
let desc = pdfh(it, 'p:eq(2)&&Text');
|
||||||
let url = pd(it, 'a&&href', HOST);
|
let url = pd(it, 'a&&href', HOST);
|
||||||
d.push({
|
d.push({
|
||||||
title:title,
|
title:title,
|
||||||
img:img,
|
img:img,
|
||||||
content:content,
|
content:content,
|
||||||
desc:desc,
|
desc:desc,
|
||||||
url:url
|
url:url
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
setResult(d);
|
setResult(d);
|
||||||
`,
|
|
||||||
预处理:`
|
|
||||||
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 init cookie>>>>>>>>>>>>>>>' + rule_fetch_params.headers.Cookie);
|
|
||||||
`,
|
`,
|
||||||
}
|
}
|
||||||
|
|||||||
139
js/dygang.js
139
js/dygang.js
@ -8,17 +8,25 @@ var rule = {
|
|||||||
filter_url:'{{fl.class}}',
|
filter_url:'{{fl.class}}',
|
||||||
filter:{
|
filter:{
|
||||||
},
|
},
|
||||||
searchUrl: '/e/search/index.php#tbname=article&show=title%2Csmalltext&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,
|
searchable:2,
|
||||||
quickSearch:0,
|
quickSearch:0,
|
||||||
filterable:0,
|
filterable:0,
|
||||||
headers:{
|
headers:{
|
||||||
'User-Agent': 'PC_UA'
|
'User-Agent': 'MOBILE_UA',
|
||||||
|
'Referer': 'https://www.dygang.tv/'
|
||||||
},
|
},
|
||||||
timeout:5000,
|
timeout:5000,
|
||||||
class_name:'最新电影&经典高清&国配电影&经典港片&国剧&日韩剧&美剧&综艺&动漫&纪录片&高清原盘&4K高清区&3D电影&电影专题',
|
class_name:'最新电影&经典高清&国配电影&经典港片&国剧&日韩剧&美剧&综艺&动漫&纪录片&高清原盘&4K高清区&3D电影&电影专题',
|
||||||
class_url:'ys&bd&gy&gp&dsj&dsj1&yx&zy&dmq&jilupian&1080p&4K&3d&dyzt',
|
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:'',
|
lazy:'',
|
||||||
limit:6,
|
limit:6,
|
||||||
推荐:'div#tl table.border1;img&&alt;img&&src;;a&&href',
|
推荐:'div#tl table.border1;img&&alt;img&&src;;a&&href',
|
||||||
@ -29,60 +37,83 @@ var rule = {
|
|||||||
desc:"#dede_content p:eq(3)&&Text",
|
desc:"#dede_content p:eq(3)&&Text",
|
||||||
content:"#dede_content p:eq(2)&&Text",
|
content:"#dede_content p:eq(2)&&Text",
|
||||||
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&&a');
|
var d = pdfa(html, '#dede_content&&a');
|
||||||
var index=0;
|
var index=0;
|
||||||
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("magnet")){
|
if (burl.startsWith("magnet")){
|
||||||
let result = 'magnet' + index;
|
let result = 'magnet' + index;
|
||||||
index = index + 1;
|
index = index + 1;
|
||||||
TABS.push(result);
|
TABS.push(result);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
log('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&&a');
|
var d = pdfa(html, '#dede_content&&a');
|
||||||
TABS.forEach(function(tab) {
|
TABS.forEach(function(tab) {
|
||||||
log('tab >>>>>>>>' + tab);
|
log('tab >>>>>>>>' + tab);
|
||||||
if (/^magnet/.test(tab)) {
|
if (/^magnet/.test(tab)) {
|
||||||
let targetindex = parseInt(tab.substring(6));
|
let targetindex = parseInt(tab.substring(6));
|
||||||
let index = 0;
|
let index = 0;
|
||||||
d.forEach(function(it){
|
d.forEach(function(it){
|
||||||
let burl = pdfh(it, 'a&&href');
|
let burl = pdfh(it, 'a&&href');
|
||||||
if (burl.startsWith("magnet")){
|
if (burl.startsWith("magnet")){
|
||||||
if (index == targetindex){
|
if (index == targetindex){
|
||||||
let title = pdfh(it, 'a&&Text');
|
let title = pdfh(it, 'a&&Text');
|
||||||
log('title >>>>>>>>>>>>>>>>>>>>>>>>>>' + title);
|
log('title >>>>>>>>>>>>>>>>>>>>>>>>>>' + title);
|
||||||
log('burl >>>>>>>>>>>>>>>>>>>>>>>>>>' + burl);
|
log('burl >>>>>>>>>>>>>>>>>>>>>>>>>>' + burl);
|
||||||
let loopresult = title + '$' + burl;
|
let loopresult = title + '$' + burl;
|
||||||
LISTS.push([loopresult]);
|
LISTS.push([loopresult]);
|
||||||
}
|
|
||||||
index = index + 1;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
});
|
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 new_host=HOST+'/';
|
let params = 'tempid=1&tbname=article&keyboard=' + KEY + '&show=title%2Csmalltext&Submit=%CB%D1%CB%F7';
|
||||||
let new_html=request(new_host, {withHeaders:true});
|
let _fetch_params = JSON.parse(JSON.stringify(rule_fetch_params));
|
||||||
let json=JSON.parse(new_html);
|
let postData = {
|
||||||
let setCk=Object.keys(json).find(it=>it.toLowerCase()==="set-cookie");
|
method: "POST",
|
||||||
let cookie=setCk?json[setCk].split(";")[0]:"";
|
body: params
|
||||||
log("dygang cookie:"+cookie);
|
};
|
||||||
if (cookie !== ""){
|
delete(_fetch_params.headers['Content-Type']);
|
||||||
rule_fetch_params.headers.Cookie=cookie;
|
Object.assign(_fetch_params, postData);
|
||||||
setItem(RULE_CK,cookie);
|
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);
|
||||||
|
`,
|
||||||
}
|
}
|
||||||
|
|||||||
128
js/jiyingw.js
128
js/jiyingw.js
@ -9,7 +9,7 @@ var rule = {
|
|||||||
},
|
},
|
||||||
searchUrl: '/?s=**',
|
searchUrl: '/?s=**',
|
||||||
searchable:2,
|
searchable:2,
|
||||||
quickSearch:1,
|
quickSearch:0,
|
||||||
filterable:1,
|
filterable:1,
|
||||||
headers:{
|
headers:{
|
||||||
'User-Agent': 'PC_UA',
|
'User-Agent': 'PC_UA',
|
||||||
@ -18,7 +18,14 @@ var rule = {
|
|||||||
timeout:5000,
|
timeout:5000,
|
||||||
class_name:'电影&电视剧&动漫&综艺&影评',
|
class_name:'电影&电视剧&动漫&综艺&影评',
|
||||||
class_url:'movie&tv&cartoon&movie/variety&yingping',
|
class_url:'movie&tv&cartoon&movie/variety&yingping',
|
||||||
play_parse:false,
|
play_parse:true,
|
||||||
|
play_json:[{
|
||||||
|
re:'*',
|
||||||
|
json:{
|
||||||
|
parse:0,
|
||||||
|
jx:0
|
||||||
|
}
|
||||||
|
}],
|
||||||
lazy:'',
|
lazy:'',
|
||||||
limit:6,
|
limit:6,
|
||||||
推荐:'ul#post_container li;a&&title;img&&src;.article entry_post&&Text;a&&href',
|
推荐:'ul#post_container li;a&&title;img&&src;.article entry_post&&Text;a&&href',
|
||||||
@ -29,58 +36,73 @@ var rule = {
|
|||||||
desc:"#post_content&&Text",
|
desc:"#post_content&&Text",
|
||||||
content:".movie-introduce&&Text",
|
content:".movie-introduce&&Text",
|
||||||
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, 'p.down-list3');
|
var d = pdfa(html, '.movie-introduce p');
|
||||||
var index=0;
|
var index=1;
|
||||||
d.forEach(function(it) {
|
d.forEach(function(it) {
|
||||||
let burl = pdfh(it, 'a&&href');
|
let burl = pdfh(it, 'a[href^="magnet"]&&href');
|
||||||
log("burl >>>>>>" + burl);
|
if (burl.startsWith("magnet")){
|
||||||
if (burl.startsWith("magnet")){
|
log("jiyingw burl >>>>>>" + burl);
|
||||||
let result = 'magnet' + index;
|
let result = 'magnet' + index;
|
||||||
index = index + 1;
|
index = index + 1;
|
||||||
TABS.push(result);
|
TABS.push(result);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
log('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, 'p.down-list3');
|
var d = pdfa(html, '.movie-introduce p');
|
||||||
TABS.forEach(function(tab) {
|
TABS.forEach(function(tab) {
|
||||||
log('tab >>>>>>>>' + tab);
|
log('jiyingw tab >>>>>>>>' + tab);
|
||||||
if (/^magnet/.test(tab)) {
|
if (/^magnet/.test(tab)) {
|
||||||
let targetindex = parseInt(tab.substring(6));
|
let targetindex = parseInt(tab.substring(6));
|
||||||
let index = 0;
|
let index = 1;
|
||||||
d.forEach(function(it){
|
d.forEach(function(it){
|
||||||
let burl = pdfh(it, 'a&&href');
|
let burl = pdfh(it, 'a[href^="magnet"]&&href');
|
||||||
if (burl.startsWith("magnet")){
|
if (burl.startsWith("magnet")){
|
||||||
if (index == targetindex){
|
if (index == targetindex){
|
||||||
let title = pdfh(it, 'a&&Text');
|
let title = pdfh(it, 'a[href^="magnet"]&&Text');
|
||||||
log('title >>>>>>>>>>>>>>>>>>>>>>>>>>' + title);
|
log('jiyingw title >>>>>>>>>>>>>>>>>>>>>>>>>>' + title);
|
||||||
log('burl >>>>>>>>>>>>>>>>>>>>>>>>>>' + burl);
|
log('jiyingw burl >>>>>>>>>>>>>>>>>>>>>>>>>>' + burl);
|
||||||
let loopresult = title + '$' + burl;
|
let loopresult = title + '$' + burl;
|
||||||
LISTS.push([loopresult]);
|
LISTS.push([loopresult]);
|
||||||
}
|
}
|
||||||
index = index + 1;
|
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 new_host=HOST;
|
let _fetch_params = JSON.parse(JSON.stringify(rule_fetch_params));
|
||||||
let new_html=request(new_host, {withHeaders:true});
|
let search_html=request(HOST + '/?s=' + KEY, _fetch_params);
|
||||||
let json=JSON.parse(new_html);
|
let d=[];
|
||||||
let setCk=Object.keys(json).find(it=>it.toLowerCase()==="set-cookie");
|
let dlist = pdfa(search_html, 'h2');
|
||||||
let cookie=setCk?json[setCk].split(";")[0]:"";
|
log("jiyingw dlist.length>>>>>>>"+dlist.length);
|
||||||
log("cookie:"+cookie);
|
dlist.forEach(function(it){
|
||||||
rule_fetch_params.headers.Cookie=cookie;
|
let title = pdfh(it, 'a&&title');
|
||||||
setItem(RULE_CK,cookie);
|
//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);
|
||||||
|
`,
|
||||||
}
|
}
|
||||||
|
|||||||
220
js/mp4us.js
220
js/mp4us.js
@ -35,127 +35,113 @@ var rule = {
|
|||||||
desc:'div.article-header div.text&&Text',
|
desc:'div.article-header div.text&&Text',
|
||||||
content:'div.article-related.info p&&Text',
|
content:'div.article-related.info p&&Text',
|
||||||
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');
|
var d = pdfa(html, 'ul.down-list&&li');
|
||||||
let magnetIndex=0;
|
let magnetIndex=0;
|
||||||
let ed2kIndex=0;
|
let ed2kIndex=0;
|
||||||
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("magnet")){
|
if (burl.startsWith("magnet")){
|
||||||
let result = 'magnet' + magnetIndex;
|
let result = 'magnet' + magnetIndex;
|
||||||
magnetIndex = magnetIndex + 1;
|
magnetIndex = magnetIndex + 1;
|
||||||
TABS.push(result);
|
TABS.push(result);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
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("ed2k")){
|
if (burl.startsWith("ed2k")){
|
||||||
let result = 'ed2k' + ed2kIndex;
|
let result = 'ed2k' + ed2kIndex;
|
||||||
ed2kIndex = ed2kIndex + 1;
|
ed2kIndex = ed2kIndex + 1;
|
||||||
TABS.push(result);
|
TABS.push(result);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
log('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, 'ul.down-list&&li');
|
var d = pdfa(html, 'ul.down-list&&li');
|
||||||
TABS.forEach(function(tab) {
|
TABS.forEach(function(tab) {
|
||||||
log('tab >>>>>>>>' + tab);
|
log('tab >>>>>>>>' + tab);
|
||||||
if (/^magnet/.test(tab)) {
|
if (/^magnet/.test(tab)) {
|
||||||
let targetindex = parseInt(tab.substring(6));
|
let targetindex = parseInt(tab.substring(6));
|
||||||
let index = 0;
|
let index = 0;
|
||||||
d.forEach(function(it){
|
d.forEach(function(it){
|
||||||
let burl = pdfh(it, 'a&&href');
|
let burl = pdfh(it, 'a&&href');
|
||||||
if (burl.startsWith("magnet")){
|
if (burl.startsWith("magnet")){
|
||||||
if (index == targetindex){
|
if (index == targetindex){
|
||||||
let title = pdfh(it, 'a&&Text');
|
let title = pdfh(it, 'a&&Text');
|
||||||
log('title >>>>>>>>>>>>>>>>>>>>>>>>>>' + title);
|
log('title >>>>>>>>>>>>>>>>>>>>>>>>>>' + title);
|
||||||
log('burl >>>>>>>>>>>>>>>>>>>>>>>>>>' + burl);
|
log('burl >>>>>>>>>>>>>>>>>>>>>>>>>>' + burl);
|
||||||
let loopresult = title + '$' + burl;
|
let loopresult = title + '$' + burl;
|
||||||
LISTS.push([loopresult]);
|
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;
|
TABS.forEach(function(tab) {
|
||||||
d.forEach(function(it){
|
log('tab >>>>>>>>' + tab);
|
||||||
let burl = pdfh(it, 'a&&href');
|
if (/^ed2k/.test(tab)) {
|
||||||
if (burl.startsWith("ed2k")){
|
let targetindex = parseInt(tab.substring(4));
|
||||||
if (index == targetindex){
|
let index = 0;
|
||||||
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("ed2k")){
|
||||||
let loopresult = title + '$' + burl;
|
if (index == targetindex){
|
||||||
LISTS.push([loopresult]);
|
let title = pdfh(it, 'a&&Text');
|
||||||
}
|
log('title >>>>>>>>>>>>>>>>>>>>>>>>>>' + title);
|
||||||
index = index + 1;
|
log('burl >>>>>>>>>>>>>>>>>>>>>>>>>>' + burl);
|
||||||
}
|
let loopresult = title + '$' + burl;
|
||||||
});
|
LISTS.push([loopresult]);
|
||||||
}
|
}
|
||||||
});
|
index = index + 1;
|
||||||
`,
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
`,
|
||||||
|
|
||||||
},
|
},
|
||||||
搜索bak:'div#list_all li;img.lazy&&alt;img.lazy&&src;div.text_info h2&&Text;a&&href;p.info&&Text',
|
|
||||||
搜索:`js:
|
搜索:`js:
|
||||||
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
|
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
|
||||||
if (rule_fetch_params.headers.Cookie.startsWith("http")){
|
if (rule_fetch_params.headers.Cookie.startsWith("http")){
|
||||||
rule_fetch_params.headers.Cookie=fetch(rule_fetch_params.headers.Cookie);
|
rule_fetch_params.headers.Cookie=fetch(rule_fetch_params.headers.Cookie);
|
||||||
let cookie = rule_fetch_params.headers.Cookie;
|
let cookie = rule_fetch_params.headers.Cookie;
|
||||||
setItem(RULE_CK, cookie);
|
setItem(RULE_CK, cookie);
|
||||||
};
|
};
|
||||||
log('mp4us seach cookie>>>>>>>>>>>>>' + rule_fetch_params.headers.Cookie);
|
log('mp4us seach cookie>>>>>>>>>>>>>' + rule_fetch_params.headers.Cookie);
|
||||||
let _fetch_params = JSON.parse(JSON.stringify(rule_fetch_params));
|
let _fetch_params = JSON.parse(JSON.stringify(rule_fetch_params));
|
||||||
//log("mp4us search params>>>>>>>>>>>>>>>" + JSON.stringify(_fetch_params));
|
//log("mp4us search params>>>>>>>>>>>>>>>" + JSON.stringify(_fetch_params));
|
||||||
let search_html = request( HOST + '/search/' + KEY + '-1.html', _fetch_params)
|
let search_html = request( HOST + '/search/' + KEY + '-1.html', _fetch_params)
|
||||||
//log("mp4us search result>>>>>>>>>>>>>>>" + search_html);
|
//log("mp4us search result>>>>>>>>>>>>>>>" + search_html);
|
||||||
let d=[];
|
let d=[];
|
||||||
//'div#list_all li;img.lazy&&alt;img.lazy&&src;div.text_info h2&&Text;a&&href;p.info&&Text',
|
//'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');
|
let dlist = pdfa(search_html, 'div#list_all li');
|
||||||
dlist.forEach(function(it){
|
dlist.forEach(function(it){
|
||||||
let title = pdfh(it, 'img.lazy&&alt');
|
let title = pdfh(it, 'img.lazy&&alt');
|
||||||
if (searchObj.quick === true){
|
if (searchObj.quick === true){
|
||||||
if (title.includes(KEY)){
|
if (title.includes(KEY)){
|
||||||
title = KEY;
|
title = KEY;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
let img = pd(it, 'img.lazy&&src', HOST);
|
let img = pd(it, 'img.lazy&&src', HOST);
|
||||||
let content = pdfh(it, 'div.text_info h2&&Text');
|
let content = pdfh(it, 'div.text_info h2&&Text');
|
||||||
let desc = pdfh(it, 'p.info&&Text');
|
let desc = pdfh(it, 'p.info&&Text');
|
||||||
let url = pd(it, 'a&&href', HOST);
|
let url = pd(it, 'a&&href', HOST);
|
||||||
d.push({
|
d.push({
|
||||||
title:title,
|
title:title,
|
||||||
img:img,
|
img:img,
|
||||||
content:content,
|
content:content,
|
||||||
desc:desc,
|
desc:desc,
|
||||||
url:url
|
url:url
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
setResult(d);
|
setResult(d);
|
||||||
`,
|
`,
|
||||||
预处理:`
|
|
||||||
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 init cookie>>>>>>>>>>>>>>>' + rule_fetch_params.headers.Cookie);
|
|
||||||
`,
|
|
||||||
proxy_url_bak: `js:
|
|
||||||
let _fetch_params = JSON.parse(JSON.stringify(rule_fetch_params));
|
|
||||||
let proxy_html = request( 'http://127.0.0.1:10079/?thread=0&proxy=socks5://192.168.101.1:1080&url=' + encodeURIComponent(input), _fetch_params);
|
|
||||||
input = [200, "text/html", proxy_html];
|
|
||||||
`,
|
|
||||||
}
|
}
|
||||||
|
|||||||
3560
json/bilibili.json
3560
json/bilibili.json
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user