Add files via upload
This commit is contained in:
parent
048f04e896
commit
5d06399ffa
@ -12,12 +12,19 @@ var rule = {
|
||||
filterable:0,
|
||||
headers:{
|
||||
'User-Agent': 'PC_UA',
|
||||
'Cookie':'hvLw_2132_saltkey=D42d76fc; hvLw_2132_lastvisit=1691932615; hvLw_2132_visitedfid=2; hvLw_2132_sendmail=1; _clck=154oxs7|2|fe4|0|1320; hvLw_2132_seccodecSAN65=6123.7f784d2302a06fc851; hvLw_2132_ulastactivity=1691936275%7C0; hvLw_2132_auth=f414is8LjLPKidkdraDXILeOYO7FTXkLD2kGZXnMpbd%2F%2FFBbttQIi4Uz3B4UY04siUlqGhn2aTWfMVM9XtsXb3H%2FqQ; hvLw_2132_lastcheckfeed=59035%7C1691936275; hvLw_2132_checkfollow=1; hvLw_2132_lip=120.84.12.18%2C1691936275; hvLw_2132_sid=0; hvLw_2132_st_t=59035%7C1691936277%7C72adae43ccf943acc9f44889da89c8c2; hvLw_2132_forum_lastvisit=D_2_1691936277; hvLw_2132_checkpm=1; hvLw_2132_noticeTitle=1; hvLw_2132_lastact=1691936278%09misc.php%09patch',
|
||||
'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',
|
||||
@ -28,93 +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=1;
|
||||
let aliIndex=1;
|
||||
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=js&type=push&from=ali&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 = 1;
|
||||
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 = 1;
|
||||
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',
|
||||
搜索:'div#threadlist ul li;h3&&Text;;p:eq(3)&&Text;a&&href;p:eq(2)&&Text',
|
||||
预处理:`
|
||||
if (rule_fetch_params.headers.Cookie.startsWith("http")){
|
||||
rule_fetch_params.headers.Cookie=fetch(rule_fetch_params.headers.Cookie);
|
||||
setItem(RULE_CK,cookie);
|
||||
};
|
||||
log('4khdr cookie>>>>>>>>>>>>>>>' + rule_fetch_params.headers.Cookie);
|
||||
let new_host='https://www.4khdr.cn/search.php';
|
||||
let new_html=request(new_host);
|
||||
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
|
||||
let formhash = pdfh(new_html, 'input[name="formhash"]&&value');
|
||||
log("formhash>>>>>>>>>>>>>>>" + formhash);
|
||||
rule_fetch_params.formhash = formhash;
|
||||
搜索:`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,15 +1,16 @@
|
||||
var rule = {
|
||||
title:'磁力熊[磁]',
|
||||
host:'https://www.cilixiong.com',
|
||||
homeUrl:'/top250/index.html',
|
||||
host:'http://127.0.0.1:10079',
|
||||
homeUrl:'/p/0/socks5%253A%252F%252F192.168.101.1%253A1080/https://www.cilixiong.com/',
|
||||
// url: '/fyclass/index_(fypage-1).html',
|
||||
url: '/fyclassfyfilter-(fypage-1).html',
|
||||
//url: '/fyclassfyfilter-(fypage-1).html',
|
||||
url:'/p/0/socks5%253A%252F%252F192.168.101.1%253A1080/https://www.cilixiong.com/fyclassfyfilter-(fypage-1).html',
|
||||
filter_url:'-{{fl.class or "0"}}-{{fl.area or "0"}}',
|
||||
filter:{
|
||||
"1":[{"key":"class","name":"类型","value":[{"n":"全部","v":"0"},{"n":"剧情","v":"1"},{"n":"喜剧","v":"2"},{"n":"惊悚","v":"3"},{"n":"动作","v":"4"},{"n":"爱情","v":"5"},{"n":"犯罪","v":"6"},{"n":"恐怖","v":"7"},{"n":"冒险","v":"8"},{"n":"悬疑","v":"9"},{"n":"科幻","v":"10"},{"n":"家庭","v":"11"},{"n":"奇幻","v":"12"},{"n":"动画","v":"13"},{"n":"战争","v":"14"},{"n":"历史","v":"15"},{"n":"传记","v":"16"},{"n":"音乐","v":"17"},{"n":"歌舞","v":"18"},{"n":"运动","v":"19"},{"n":"西部","v":"20"},{"n":"灾难","v":"21"},{"n":"古装","v":"22"},{"n":"情色","v":"23"},{"n":"同性","v":"24"},{"n":"儿童","v":"25"},{"n":"纪录片","v":"26"}]},{"key":"area","name":"地区","value":[{"n":"全部","v":"0"},{"n":"大陆","v":"1"},{"n":"香港","v":"2"},{"n":"台湾","v":"3"},{"n":"美国","v":"4"},{"n":"日本","v":"5"},{"n":"韩国","v":"6"},{"n":"英国","v":"7"},{"n":"法国","v":"8"},{"n":"德国","v":"9"},{"n":"印度","v":"10"},{"n":"泰国","v":"11"},{"n":"丹麦","v":"12"},{"n":"瑞典","v":"13"},{"n":"巴西","v":"14"},{"n":"加拿大","v":"15"},{"n":"俄罗斯","v":"16"},{"n":"意大利","v":"17"},{"n":"比利时","v":"18"},{"n":"爱尔兰","v":"19"},{"n":"西班牙","v":"20"},{"n":"澳大利亚","v":"21"},{"n":"波兰","v":"22"},{"n":"土耳其","v":"23"},{"n":"越南","v":"24"}]}],
|
||||
"2":[{"key":"class","name":"类型","value":[{"n":"全部","v":"0"},{"n":"剧情","v":"1"},{"n":"喜剧","v":"2"},{"n":"惊悚","v":"3"},{"n":"动作","v":"4"},{"n":"爱情","v":"5"},{"n":"犯罪","v":"6"},{"n":"恐怖","v":"7"},{"n":"冒险","v":"8"},{"n":"悬疑","v":"9"},{"n":"科幻","v":"10"},{"n":"家庭","v":"11"},{"n":"奇幻","v":"12"},{"n":"动画","v":"13"},{"n":"战争","v":"14"},{"n":"历史","v":"15"},{"n":"传记","v":"16"},{"n":"音乐","v":"17"},{"n":"歌舞","v":"18"},{"n":"运动","v":"19"},{"n":"西部","v":"20"},{"n":"灾难","v":"21"},{"n":"古装","v":"22"},{"n":"情色","v":"23"},{"n":"同性","v":"24"},{"n":"儿童","v":"25"},{"n":"纪录片","v":"26"}]},{"key":"area","name":"地区","value":[{"n":"全部","v":"0"},{"n":"大陆","v":"1"},{"n":"香港","v":"2"},{"n":"台湾","v":"3"},{"n":"美国","v":"4"},{"n":"日本","v":"5"},{"n":"韩国","v":"6"},{"n":"英国","v":"7"},{"n":"法国","v":"8"},{"n":"德国","v":"9"},{"n":"印度","v":"10"},{"n":"泰国","v":"11"},{"n":"丹麦","v":"12"},{"n":"瑞典","v":"13"},{"n":"巴西","v":"14"},{"n":"加拿大","v":"15"},{"n":"俄罗斯","v":"16"},{"n":"意大利","v":"17"},{"n":"比利时","v":"18"},{"n":"爱尔兰","v":"19"},{"n":"西班牙","v":"20"},{"n":"澳大利亚","v":"21"},{"n":"波兰","v":"22"},{"n":"土耳其","v":"23"},{"n":"越南","v":"24"}]}]
|
||||
},
|
||||
searchUrl: '/e/search/index.php#classid=1,2&show=title&tempid=1&keyboard=**;post',
|
||||
searchUrl: '/p/0/socks5%253A%252F%252F192.168.101.1%253A1080/https://www.cilixiong.com/e/search/index.php#classid=1,2&show=title&tempid=1&keyboard=**;post',
|
||||
searchable:0,
|
||||
quickSearch:0,
|
||||
filterable:1,
|
||||
@ -51,52 +52,11 @@ var rule = {
|
||||
title: pdfh(it, 'h2&&Text'),
|
||||
desc: pdfh(it, '.me-auto&&Text') + '分 / ' + pdfh(it, '.small&&Text'),
|
||||
pic_url: pdfh(it, '.card-img&&style'),
|
||||
url: pd(it, 'a&&href')
|
||||
url: ''
|
||||
});
|
||||
})
|
||||
setResult(d);
|
||||
`,
|
||||
二级:{
|
||||
title:'h1&&Text;p.mb-2:eq(4)&&Text',
|
||||
desc:'p.mb-2:eq(1)&&Text;;;p.mb-2:eq(7)&&Text;p.mb-2:eq(5)&&Text',
|
||||
img:'.rounded-2&&src',
|
||||
content:'.mv_card_box&&Text',
|
||||
// tabs:'js:TABS = ["道长磁力"]',
|
||||
// lists:'.mv_down:eq(#id)&&.border-bottom',
|
||||
// list_text:'a&&Text',
|
||||
// list_url:'a&&href',
|
||||
|
||||
tabs:'js:TABS = ["道长磁力","道长在线预览"]',
|
||||
lists:`js:
|
||||
log(TABS);
|
||||
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
|
||||
LISTS = [];
|
||||
var dd=[];
|
||||
TABS.forEach(function(tab) {
|
||||
if (/道长磁力/.test(tab)) {
|
||||
var d = pdfa(html, '.mv_down&&.border-bottom');
|
||||
d = d.map(function(it) {
|
||||
var title = pdfh(it, 'a&&Text');
|
||||
log('title >>>>>>>>>>>>>>>>>>>>>>>>>>' + title);
|
||||
var burl = pd(it, 'a&&href');
|
||||
log('burl >>>>>>>>>>>>>>>>>>>>>>>>>>' + burl);
|
||||
return ''
|
||||
//return title + '$' + burl
|
||||
});
|
||||
LISTS.push(d)
|
||||
} else if (/道长在线预览/.test(tab)) {
|
||||
var d = pd(html, 'iframe&&src');
|
||||
if (d) {
|
||||
//d=['第一集在线播放预览$' + d]
|
||||
d=''
|
||||
} else {
|
||||
//d=['没有预览不要点$http://www.sharenice.net/douyin/23852']
|
||||
d=''
|
||||
}
|
||||
LISTS.push(d)
|
||||
}
|
||||
});
|
||||
`,
|
||||
},
|
||||
搜索:'.col;h2&&Text;.card-img&&style;.me-auto&&Text;a&&href',
|
||||
二级:'',
|
||||
搜索:'',
|
||||
}
|
||||
|
@ -39,8 +39,8 @@ var rule = {
|
||||
tabs:`js:
|
||||
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
|
||||
TABS=[]
|
||||
var d = pdfa(html, '#dede_content&&a');
|
||||
var index=0;
|
||||
var d = pdfa(html, '#dede_content table tbody tr');
|
||||
var index=1;
|
||||
d.forEach(function(it) {
|
||||
let burl = pdfh(it, 'a&&href');
|
||||
log("burl >>>>>>" + burl);
|
||||
@ -56,16 +56,16 @@ log('TABS >>>>>>>>>>>>>>>>>>' + TABS);
|
||||
log(TABS);
|
||||
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
|
||||
LISTS = [];
|
||||
var d = pdfa(html, '#dede_content&&a');
|
||||
var d = pdfa(html, '#dede_content table tbody tr');
|
||||
TABS.forEach(function(tab) {
|
||||
log('tab >>>>>>>>' + tab);
|
||||
if (/^magnet/.test(tab)) {
|
||||
let targetindex = parseInt(tab.substring(6));
|
||||
let index = 0;
|
||||
let index = 1;
|
||||
d.forEach(function(it){
|
||||
let burl = pdfh(it, 'a&&href');
|
||||
if (burl.startsWith("magnet")){
|
||||
if (index == targetindex){
|
||||
if (index === targetindex){
|
||||
let title = pdfh(it, 'a&&Text');
|
||||
log('title >>>>>>>>>>>>>>>>>>>>>>>>>>' + title);
|
||||
log('burl >>>>>>>>>>>>>>>>>>>>>>>>>>' + burl);
|
||||
|
@ -1,8 +1,8 @@
|
||||
var rule = {
|
||||
title:'极影网[磁]',
|
||||
host:'https://www.jiyingw.net',
|
||||
homeUrl:'/',
|
||||
url: '/fyclass/page/fypage?',
|
||||
host:'http://127.0.0.1:10079',
|
||||
homeUrl:'/p/0/socks5%253A%252F%252F192.168.101.1%253A1080/https://www.jiyingw.net',
|
||||
url: '/p/0/socks5%253A%252F%252F192.168.101.1%253A1080/https://www.jiyingw.net/fyclass/page/fypage?',
|
||||
filter_url:'{{fl.class}}',
|
||||
filter:{
|
||||
"movie":[{"key":"class","name":"标签","value":[{"n":"全部","v":"movie"},{"n":"4k","v":"tag/4k"}, {"n":"人性","v":"tag/人性"}, {"n":"传记","v":"tag/chuanji"}, {"n":"儿童","v":"tag/儿童"}, {"n":"冒险","v":"tag/adventure"}, {"n":"剧情","v":"tag/剧情"}, {"n":"加拿大","v":"tag/加拿大"}, {"n":"动作","v":"tag/dongzuo"}, {"n":"动漫","v":"tag/动漫"}, {"n":"励志","v":"tag/励志"}, {"n":"历史","v":"tag/history"}, {"n":"古装","v":"tag/古装"}, {"n":"同性","v":"tag/gay"}, {"n":"喜剧","v":"tag/comedy"}, {"n":"国剧","v":"tag/国剧"}, {"n":"奇幻","v":"tag/qihuan"}, {"n":"女性","v":"tag/女性"}, {"n":"家庭","v":"tag/family"}, {"n":"德国","v":"tag/德国"}, {"n":"恐怖","v":"tag/kongbu"}, {"n":"悬疑","v":"tag/xuanyi"}, {"n":"惊悚","v":"tag/jingsong"}, {"n":"意大利","v":"tag/意大利"}, {"n":"战争","v":"tag/zhanzheng"}, {"n":"战斗","v":"tag/战斗"}, {"n":"搞笑","v":"tag/搞笑"}, {"n":"故事","v":"tag/故事"}, {"n":"文艺","v":"tag/文艺"}, {"n":"日常","v":"tag/日常"}, {"n":"日本","v":"tag/日本"}, {"n":"日语","v":"tag/日语"}, {"n":"校园","v":"tag/校园"}, {"n":"武侠","v":"tag/wuxia"}, {"n":"法国","v":"tag/法国"}, {"n":"游戏","v":"tag/游戏"}, {"n":"灾难","v":"tag/zainan"}, {"n":"爱情","v":"tag/爱情"}, {"n":"犯罪","v":"tag/crime"}, {"n":"真人秀","v":"tag/zhenrenxiu"}, {"n":"短片","v":"tag/duanpian"}, {"n":"科幻","v":"tag/kehuan"}, {"n":"纪录","v":"tag/jilu"}, {"n":"美剧","v":"tag/meiju"}, {"n":"舞台","v":"tag/stage"}, {"n":"西部","v":"tag/xibu"}, {"n":"运动","v":"tag/yundong"}, {"n":"韩剧","v":"tag/韩剧"}, {"n":"韩国","v":"tag/韩国"}, {"n":"音乐","v":"tag/yinyue"}, {"n":"高清电影","v":"tag/高清电影"}]}]
|
||||
@ -39,16 +39,30 @@ var rule = {
|
||||
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
|
||||
TABS=[]
|
||||
var d = pdfa(html, '.movie-introduce p');
|
||||
var index=1;
|
||||
var index=0;
|
||||
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;
|
||||
let result = 'magnet' + index;
|
||||
TABS.push(result);
|
||||
}
|
||||
});
|
||||
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);
|
||||
`,
|
||||
lists:`js:
|
||||
@ -56,25 +70,45 @@ log(TABS);
|
||||
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
|
||||
LISTS = [];
|
||||
var d = pdfa(html, '.movie-introduce p');
|
||||
var secondinit=false;
|
||||
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]);
|
||||
log('jiyingw 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^="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]);
|
||||
}
|
||||
}
|
||||
index = index + 1;
|
||||
});
|
||||
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]);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
`,
|
||||
|
||||
@ -82,7 +116,7 @@ if (/^magnet/.test(tab)) {
|
||||
搜索:`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 search_html=request(HOST + rule.homeUrl + '/?s=' + KEY, _fetch_params);
|
||||
let d=[];
|
||||
let dlist = pdfa(search_html, 'h2');
|
||||
log("jiyingw dlist.length>>>>>>>"+dlist.length);
|
||||
|
@ -38,8 +38,8 @@ var rule = {
|
||||
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
|
||||
TABS=[]
|
||||
var d = pdfa(html, 'ul.down-list&&li');
|
||||
let magnetIndex=0;
|
||||
let ed2kIndex=0;
|
||||
let magnetIndex=1;
|
||||
let ed2kIndex=1;
|
||||
d.forEach(function(it) {
|
||||
let burl = pdfh(it, 'a&&href');
|
||||
log("burl >>>>>>" + burl);
|
||||
@ -69,11 +69,11 @@ TABS.forEach(function(tab) {
|
||||
log('tab >>>>>>>>' + tab);
|
||||
if (/^magnet/.test(tab)) {
|
||||
let targetindex = parseInt(tab.substring(6));
|
||||
let index = 0;
|
||||
let index = 1;
|
||||
d.forEach(function(it){
|
||||
let burl = pdfh(it, 'a&&href');
|
||||
if (burl.startsWith("magnet")){
|
||||
if (index == targetindex){
|
||||
if (index === targetindex){
|
||||
let title = pdfh(it, 'a&&Text');
|
||||
log('title >>>>>>>>>>>>>>>>>>>>>>>>>>' + title);
|
||||
log('burl >>>>>>>>>>>>>>>>>>>>>>>>>>' + burl);
|
||||
@ -89,11 +89,11 @@ TABS.forEach(function(tab) {
|
||||
log('tab >>>>>>>>' + tab);
|
||||
if (/^ed2k/.test(tab)) {
|
||||
let targetindex = parseInt(tab.substring(4));
|
||||
let index = 0;
|
||||
let index = 1;
|
||||
d.forEach(function(it){
|
||||
let burl = pdfh(it, 'a&&href');
|
||||
if (burl.startsWith("ed2k")){
|
||||
if (index == targetindex){
|
||||
if (index === targetindex){
|
||||
let title = pdfh(it, 'a&&Text');
|
||||
log('title >>>>>>>>>>>>>>>>>>>>>>>>>>' + title);
|
||||
log('burl >>>>>>>>>>>>>>>>>>>>>>>>>>' + burl);
|
||||
|
Loading…
x
Reference in New Issue
Block a user