mirror of
https://github.com/letian1650/N3RD.git
synced 2025-01-24 19:39:40 +08:00
81 lines
5.6 KiB
JavaScript
81 lines
5.6 KiB
JavaScript
// 搜索验证码 pass
|
|
muban.mxpro.二级.desc = '.module-info-item:eq(5)&&Text;;;.module-info-item-content:eq(1)&&Text;.module-info-item-content:eq(0)&&Text'
|
|
var rule = {
|
|
title:'南柯电影网',
|
|
模板:'mxpro',
|
|
host:'https://www.nkdyw.com',
|
|
url:'/show/fyfilter.html',
|
|
searchUrl: '/search/**----------fypage---.html',
|
|
filterable:1,//是否启用分类筛选,
|
|
filter_url:'{{fl.cateId}}-{{fl.area}}-{{fl.by or "time"}}-{{fl.class}}-{{fl.lang}}-{{fl.letter}}---fypage---{{fl.year}}',
|
|
filter: {
|
|
"1":[{"key":"cateId","name":"类型","value":[{"n":"全部","v":"1"},{"n":"动作片","v":"6"},{"n":"喜剧片","v":"7"},{"n":"爱情片","v":"8"},{"n":"科幻片","v":"9"},{"n":"恐怖片","v":"10"},{"n":"剧情片","v":"11"},{"n":"战争片","v":"12"}]},{"key":"year","name":"年份","value":[{"n":"全部","v":""},{"n":"2023","v":"2023"},{"n":"2022","v":"2022"},{"n":"2021","v":"2021"},{"n":"2020","v":"2020"},{"n":"2019","v":"2019"},{"n":"2018","v":"2018"},{"n":"2017","v":"2017"},{"n":"2016","v":"2016"},{"n":"2015","v":"2015"},{"n":"2014","v":"2014"},{"n":"2013","v":"2013"},{"n":"2012","v":"2012"},{"n":"2011","v":"2011"},{"n":"2010","v":"2010"},{"n":"2009","v":"2009"},{"n":"2008","v":"2008"},{"n":"2007","v":"2007"},{"n":"2006","v":"2006"},{"n":"2005","v":"2005"},{"n":"2004","v":"2004"}]},{"key":"by","name":"排序","value":[{"n":"时间","v":"time"},{"n":"人气","v":"hits"},{"n":"评分","v":"score"}]}],
|
|
"2":[{"key":"cateId","name":"类型","value":[{"n":"全部","v":"2"},{"n":"国产剧","v":"13"},{"n":"港台剧","v":"14"},{"n":"日韩剧","v":"15"},{"n":"欧美剧","v":"16"},{"n":"其他剧","v":"20"}]},{"key":"year","name":"年份","value":[{"n":"全部","v":""},{"n":"2023","v":"2023"},{"n":"2022","v":"2022"},{"n":"2021","v":"2021"},{"n":"2020","v":"2020"},{"n":"2019","v":"2019"},{"n":"2018","v":"2018"},{"n":"2017","v":"2017"},{"n":"2016","v":"2016"},{"n":"2015","v":"2015"},{"n":"2014","v":"2014"},{"n":"2013","v":"2013"},{"n":"2012","v":"2012"},{"n":"2011","v":"2011"},{"n":"2010","v":"2010"},{"n":"2009","v":"2009"},{"n":"2008","v":"2008"},{"n":"2007","v":"2007"},{"n":"2006","v":"2006"},{"n":"2005","v":"2005"},{"n":"2004","v":"2004"}]},{"key":"by","name":"排序","value":[{"n":"时间","v":"time"},{"n":"人气","v":"hits"},{"n":"评分","v":"score"}]}],
|
|
"3":[{"key":"year","name":"年份","value":[{"n":"全部","v":""},{"n":"2023","v":"2023"},{"n":"2022","v":"2022"},{"n":"2021","v":"2021"},{"n":"2020","v":"2020"},{"n":"2019","v":"2019"},{"n":"2018","v":"2018"},{"n":"2017","v":"2017"},{"n":"2016","v":"2016"},{"n":"2015","v":"2015"},{"n":"2014","v":"2014"},{"n":"2013","v":"2013"},{"n":"2012","v":"2012"},{"n":"2011","v":"2011"},{"n":"2010","v":"2010"},{"n":"2009","v":"2009"},{"n":"2008","v":"2008"},{"n":"2007","v":"2007"},{"n":"2006","v":"2006"},{"n":"2005","v":"2005"},{"n":"2004","v":"2004"}]},{"key":"by","name":"排序","value":[{"n":"时间","v":"time"},{"n":"人气","v":"hits"},{"n":"评分","v":"score"}]}],
|
|
"4":[{"key":"year","name":"年份","value":[{"n":"全部","v":""},{"n":"2023","v":"2023"},{"n":"2022","v":"2022"},{"n":"2021","v":"2021"},{"n":"2020","v":"2020"},{"n":"2019","v":"2019"},{"n":"2018","v":"2018"},{"n":"2017","v":"2017"},{"n":"2016","v":"2016"},{"n":"2015","v":"2015"},{"n":"2014","v":"2014"},{"n":"2013","v":"2013"},{"n":"2012","v":"2012"},{"n":"2011","v":"2011"},{"n":"2010","v":"2010"},{"n":"2009","v":"2009"},{"n":"2008","v":"2008"},{"n":"2007","v":"2007"},{"n":"2006","v":"2006"},{"n":"2005","v":"2005"},{"n":"2004","v":"2004"}]},{"key":"by","name":"排序","value":[{"n":"时间","v":"time"},{"n":"人气","v":"hits"},{"n":"评分","v":"score"}]}]
|
|
},
|
|
filter_def:{
|
|
1:{cateId:'1'},
|
|
2:{cateId:'2'},
|
|
3:{cateId:'3'},
|
|
4:{cateId:'4'}
|
|
},
|
|
class_parse:'.navbar-items li:gt(1):lt(6);a&&Text;a&&href;/(\\d+).html',
|
|
lazy:`js:
|
|
var html = JSON.parse(request(input).match(/r player_.*?=(.*?)</)[1]);
|
|
var url = html.url;
|
|
if (html.encrypt == '1') {
|
|
url = unescape(url)
|
|
} else if (html.encrypt == '2') {
|
|
url = unescape(base64Decode(url))
|
|
}
|
|
if (/m3u8|mp4/.test(url)) {
|
|
input = url
|
|
} else {
|
|
input = {jx:0,url:'https://jx.xmflv.com/?url='+url,parse:1,
|
|
header: JSON.stringify({
|
|
'user-agent': 'okhttp/4.1.0'
|
|
})
|
|
}
|
|
}
|
|
`,
|
|
预处理:`
|
|
rule_fetch_params.headers.Cookie = "3d1899503da128319d46484900974d61=2260e8918a83e15f322f083e71586517";
|
|
let new_html = request(HOST);
|
|
if (/检测中/.test(new_html)) {
|
|
let hhtml = request(HOST, {
|
|
withHeaders: true
|
|
});
|
|
let json = JSON.parse(hhtml);
|
|
let setCk = Object.keys(json).find(it => it.toLowerCase() === "set-cookie");
|
|
let cookie = setCk ? json[setCk].split(";")[0] : "";
|
|
rule_fetch_params.headers.Cookie = cookie;
|
|
setItem(RULE_CK, cookie)
|
|
} else if (/正在进行人机识别/.test(new_html)) {
|
|
let new_src = pd(new_html, "script&&src", HOST);
|
|
let hhtml = request(new_src, {
|
|
withHeaders: true
|
|
});
|
|
let json = JSON.parse(hhtml);
|
|
let html = json.body;
|
|
let key = html.match(new RegExp(\'var key="(.*?)"\'))[1];
|
|
let avalue = html.match(new RegExp(\'value="(.*?)"\'))[1];
|
|
let c = "";
|
|
for (let i = 0; i < avalue.length; i++) {
|
|
let a = avalue[i];
|
|
let b = a.charCodeAt();
|
|
c += b
|
|
}
|
|
let value = md5(c);
|
|
let yz_url = HOST + "/a20be899_96a6_40b2_88ba_32f1f75f1552_yanzheng_ip.php?type=96c4e20a0e951f471d32dae103e83881&key=" + key + "&value=" + value;
|
|
hhtml = request(yz_url, {
|
|
withHeaders: true
|
|
});
|
|
json = JSON.parse(hhtml);
|
|
let setCk = Object.keys(json).find(it => it.toLowerCase() === "set-cookie");
|
|
let cookie = setCk ? json[setCk].split(";")[0] : "";
|
|
rule_fetch_params.headers.Cookie = cookie;
|
|
setItem(RULE_CK, cookie)
|
|
}
|
|
`,
|
|
} |