mirror of
https://github.com/letian1650/N3RD.git
synced 2025-01-24 03:05:33 +08:00
Add files via upload
This commit is contained in:
parent
b179df613e
commit
b77c764aaa
85
JN/dr_py/js/PTT追剧大师.js
Normal file
85
JN/dr_py/js/PTT追剧大师.js
Normal file
@ -0,0 +1,85 @@
|
||||
var rule = {
|
||||
类型: '影视',//影视|听书|漫画|小说
|
||||
title: 'PTT追剧大师',
|
||||
host: 'https://ptt.red',
|
||||
homeUrl: '/zh-cn',
|
||||
url: '/zh-cn/p/fyclass?page=fypage',
|
||||
searchUrl: '/zh-cn/q/**?page=fypage',
|
||||
searchable: 2,
|
||||
quickSearch: 0,
|
||||
filterable: 1,
|
||||
filter: '',
|
||||
filter_url: '',
|
||||
filter_def: {},
|
||||
headers: {
|
||||
'User-Agent': 'MOBILE_UA',
|
||||
},
|
||||
timeout: 5000,
|
||||
class_parse: '.nav-tabs&&a;a&&Text;a&&href;(\\d+)',
|
||||
cate_exclude: '',
|
||||
play_parse: true,
|
||||
lazy: $js.toString(() => {
|
||||
let html = request(input);
|
||||
let sdata = pdfh(html, '.container-fluid&&script&&Html');
|
||||
// log(sdata);
|
||||
let json = JSON.parse(sdata);
|
||||
if (json.contentUrl) {
|
||||
input = {parse: 0, url: json.contentUrl, js: ''};
|
||||
}
|
||||
}),
|
||||
double: false,
|
||||
推荐: '*',
|
||||
一级: '#videos&&.card;a:eq(-1)&&Text;img&&src;.badge-success&&Text;a:eq(-1)&&href',
|
||||
二级: $js.toString(() => {
|
||||
let html = request(input);
|
||||
let data = html.split('node:')[1].split('},')[0] + '}';
|
||||
data = data.trim();
|
||||
// log(data);
|
||||
let json = JSON.parse(data);
|
||||
// log(json);
|
||||
VOD = {};
|
||||
|
||||
VOD.vod_name = json.title;
|
||||
VOD.type_name = json.type;
|
||||
VOD.vod_id = input;
|
||||
VOD.vod_pic = urljoin(input, json.thumbnail);
|
||||
VOD.vod_year = json.year;
|
||||
VOD.vod_area = json._area;
|
||||
VOD.vod_remarks = json.note;
|
||||
VOD.vod_content = json.description;
|
||||
VOD.vod_director = json.director;
|
||||
VOD.vod_actor = json.actors;
|
||||
let v_tabs = pdfa(html, '.nav-tabs&&li');
|
||||
let v_tab_urls = v_tabs.map(it => pd(it, 'a&&href', input));
|
||||
v_tabs = v_tabs.map(it => pdfh(it, 'a&&title'));
|
||||
// log(v_tab_urls);
|
||||
VOD.vod_play_from = v_tabs.join('$$$');
|
||||
let lists = [];
|
||||
let list1 = pdfa(html, '.mb-2.fullwidth&&a').map(it => pdfh(it, 'a&&Text') + '$' + pd(it, 'a&&href', input));
|
||||
// log(list1);
|
||||
lists.push(list1);
|
||||
if (v_tab_urls.length > 1) {
|
||||
let reqUrls = v_tab_urls.slice(1).map(it => {
|
||||
return {
|
||||
url: it,
|
||||
options: {
|
||||
timeout: 5000,
|
||||
headers: rule.headers
|
||||
}
|
||||
}
|
||||
});
|
||||
let htmls = batchFetch(reqUrls);
|
||||
htmls.forEach((ht) => {
|
||||
if (ht) {
|
||||
let list0 = pdfa(ht, '.mb-2.fullwidth&&a').map(it => pdfh(it, 'a&&Text') + '$' + pd(it, 'a&&href', input));
|
||||
lists.push(list0);
|
||||
} else {
|
||||
lists.push([]);
|
||||
}
|
||||
});
|
||||
}
|
||||
let playUrls = lists.map(it => it.join('#'));
|
||||
VOD.vod_play_url = playUrls.join('$$$');
|
||||
}),
|
||||
搜索: '*',
|
||||
}
|
@ -6,8 +6,7 @@ var rule = {
|
||||
title: '剧哥哥',//https://jugege.com/
|
||||
host: 'https://www.jugege.top',
|
||||
class_parse: '.navbar-items li:gt(0):lt(8);a&&Text;a&&href;/(\\d+).html',
|
||||
url: '/vodshow/fyfilter.html',
|
||||
filter_url: '{{fl.cateId}}-{{fl.area}}-{{fl.by}}-{{fl.class}}-----fypage---{{fl.year}}',
|
||||
url: '/vodtype/fyclass.html',
|
||||
searchUrl: '/rss/index.xml?wd=**',
|
||||
搜索: $js.toString(() => {
|
||||
let html = request(input);
|
||||
@ -27,8 +26,4 @@ var r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8X/L7wS18Ian3BPyL+EXnkiMxoR+RfWseJ7Vj4fkmY5Lnm1zXRFMAmwX/0/BP91yc6/hNlKCPlbBIAAA=='
|
||||
}
|
@ -1,30 +1,39 @@
|
||||
// 地址发布页 https://www.dandanju.vip
|
||||
// 搜索安全验证 > 通过drpy_ocr验证码接口过验证OK
|
||||
var rule = {
|
||||
title:'蛋蛋剧',
|
||||
title: '蛋蛋剧',
|
||||
// host:'https://www.dandanju.cc',
|
||||
host:'https://www.dandanju.vip',
|
||||
hostJs:'print(HOST);let html=request(HOST,{headers:{"User-Agent":PC_UA}});let src=jsp.pdfh(html,"a:eq(0)&&href");print(src);HOST=src',
|
||||
// url:'/show/fyclass--------fypage---.html',
|
||||
url:'/show/fyclassfyfilter.html',
|
||||
filterable:1,//是否启用分类筛选,
|
||||
filter_url:'-{{fl.area}}-{{fl.by}}-{{fl.class}}-{{fl.lang}}-{{fl.letter}}---fypage---{{fl.year}}',
|
||||
filter: {
|
||||
"1":[{"key":"class","name":"剧情","value":[{"n":"全部","v":""},{"n":"喜剧","v":"喜剧"},{"n":"爱情","v":"爱情"},{"n":" 恐怖","v":"恐怖"},{"n":"动作","v":"动作"},{"n":"科幻","v":"科幻"},{"n":"剧情","v":"剧情"},{"n":"战争","v":"战争"},{"n":"警匪","v":"警匪"},{"n":"犯罪","v":"犯罪"},{"n":"动画","v":"动画"},{"n":"奇幻","v":"奇幻"},{"n":"武侠","v":"武侠"},{"n":"冒险","v":"冒险"},{"n":"枪战","v":"枪战"},{"n":"恐怖","v":"恐怖"},{"n":"悬疑","v":"悬疑"},{"n":"惊悚","v":"惊悚"},{"n":"经典","v":"经典"},{"n":"青春","v":"青春"},{"n":"文艺","v":"文艺"},{"n":"微电影","v":"微电影"},{"n":"古装","v":"古装"},{"n":"历史","v":"历史"},{"n":"运动","v":"运动"},{"n":"农村","v":"农村"},{"n":"儿童","v":"儿童"},{"n":"网络电影","v":"网络电影"}]},{"key":"area","name":"地区","value":[{"n":"全部","v":""},{"n":"大陆","v":"大陆"},{"n":"香港","v":"香港"},{"n":"台湾","v":"台湾"},{"n":"美国","v":"美国"},{"n":"法国","v":"法国"},{"n":"英国","v":"英国"},{"n":"日本","v":"日本"},{"n":"韩国","v":"韩国"},{"n":"德国","v":"德国"},{"n":"泰国","v":"泰国"},{"n":"印度","v":"印度"},{"n":"意大利","v":"意大利"},{"n":"西班牙","v":"西班牙"},{"n":"加拿大","v":"加拿大"},{"n":"其他","v":"其他"}]},{"key":"year","name":"年份","value":[{"n":"全部","v":""},{"n":"2024","v":"2024"},{"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"}]},{"key":"by","name":"排序","value":[{"n":"时间","v":"time"},{"n":"人气","v":"hits"},{"n":"评分","v":"score"}]}],
|
||||
"2":[{"key":"class","name":"剧情","value":[{"n":"全部","v":""},{"n":"古装","v":"古装"},{"n":"战争","v":"战争"},{"n":"青春偶像","v":"青春偶像"},{"n":"喜剧","v":"喜剧"},{"n":"家庭","v":"家庭"},{"n":"犯罪","v":"犯罪"},{"n":"动作","v":"动作"},{"n":"奇幻","v":"奇幻"},{"n":"剧情","v":"剧情"},{"n":"历史","v":"历史"},{"n":"经典","v":"经典"},{"n":"乡村","v":"乡村"},{"n":"情景","v":"情景"},{"n":"商战","v":"商战"},{"n":"网剧","v":"网剧"},{"n":"其他","v":"其他"}]},{"key":"area","name":"地区","value":[{"n":"全部","v":""},{"n":"内地","v":"内地"},{"n":"韩国","v":"韩国"},{"n":"香港","v":"香港"},{"n":"台湾","v":"台湾"},{"n":"日本","v":"日本"},{"n":"美国","v":"美国"},{"n":"泰国","v":"泰国"},{"n":"英国","v":"英国"},{"n":"新加坡","v":"新加坡"},{"n":"其他","v":"其他"}]},{"key":"year","name":"年份","value":[{"n":"全部","v":""},{"n":"2024","v":"2024"},{"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":"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":"class","name":"剧情","value":[{"n":"全部","v":""},{"n":"选秀","v":"选秀"},{"n":"情感","v":"情感"},{"n":"访谈","v":"访谈"},{"n":"播报","v":"播报"},{"n":"旅游","v":"旅游"},{"n":"音乐","v":"音乐"},{"n":"美食","v":"美食"},{"n":"纪实","v":"纪实"},{"n":"曲艺","v":"曲艺"},{"n":"生活","v":"生活"},{"n":"游戏互动","v":"游戏互动"},{"n":"财经","v":"财经"},{"n":"求职","v":"求职"}]},{"key":"area","name":"地区","value":[{"n":"全部","v":""},{"n":"内地","v":"内地"},{"n":"港台","v":"港台"},{"n":"日韩","v":"日韩"},{"n":"欧美","v":"欧美"}]},{"key":"year","name":"年份","value":[{"n":"全部","v":""},{"n":"2024","v":"2024"},{"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":"class","name":"剧情","value":[{"n":"全部","v":""},{"n":"情感","v":"情感"},{"n":"科幻","v":"科幻"},{"n":"热血","v":"热血"},{"n":"推理","v":"推理"},{"n":"搞笑","v":"搞笑"},{"n":"冒险","v":"冒险"},{"n":"萝莉","v":"萝莉"},{"n":"校园","v":"校园"},{"n":"动作","v":"动作"},{"n":"机战","v":"机战"},{"n":"运动","v":"运动"},{"n":"战争","v":"战争"},{"n":"少年","v":"少年"},{"n":"少女","v":"少女"},{"n":"社会","v":"社会"},{"n":"原创","v":"原创"},{"n":"亲子","v":"亲子"},{"n":"益智","v":"益智"},{"n":"励志","v":"励志"},{"n":"其他","v":"其他"}]},{"key":"area","name":"地区","value":[{"n":"全部","v":""},{"n":"国产","v":"国产"},{"n":"日本","v":"日本"},{"n":"欧美","v":"欧美"},{"n":"其他","v":"其他"}]},{"key":"year","name":"年份","value":[{"n":"全部","v":""},{"n":"2024","v":"2024"},{"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"}]}]
|
||||
host: 'https://www.dandanju.tv',
|
||||
//hostJs: 'print(HOST);let html=request(HOST,{headers:{"User-Agent":PC_UA}});let src=jsp.pdfh(html,"a:eq(0)&&href");print(src);HOST=src',
|
||||
url: '/type/fyclass.html',
|
||||
searchUrl: '/index.php/rss.xml?wd=**',
|
||||
搜索: $js.toString(() => {
|
||||
let html = request(input);
|
||||
let items = pdfa(html, 'rss&&item');
|
||||
// log(items);
|
||||
let d = [];
|
||||
items.forEach(it => {
|
||||
it = it.replace(/title|link|author|pubdate|description/g, 'p');
|
||||
let url = pdfh(it, 'p:eq(1)&&Text');
|
||||
d.push({
|
||||
title: pdfh(it, 'p&&Text'),
|
||||
url: url,
|
||||
desc: pdfh(it, 'p:eq(3)&&Text'),
|
||||
content: pdfh(it, 'p:eq(4)&&Text'),
|
||||
pic_url: "",
|
||||
});
|
||||
});
|
||||
setResult(d);
|
||||
}),
|
||||
searchable: 2,//是否启用全局搜索,
|
||||
quickSearch: 0,//是否启用快速搜索,
|
||||
headers: {
|
||||
'User-Agent': 'MOBILE_UA'
|
||||
},
|
||||
searchUrl:'/search/**----------fypage---.html',
|
||||
searchable:2,//是否启用全局搜索,
|
||||
quickSearch:0,//是否启用快速搜索,
|
||||
headers:{
|
||||
'User-Agent':'MOBILE_UA'
|
||||
},
|
||||
timeout:5000,//网站的全局请求超时,默认是3000毫秒
|
||||
class_parse:'ul.swiper-wrapper&&li;a&&Text;a&&href;.*/(.*?).html',
|
||||
play_parse:true,
|
||||
lazy:`js:
|
||||
timeout: 5000,//网站的全局请求超时,默认是3000毫秒
|
||||
class_parse: 'ul.swiper-wrapper&&li;a&&Text;a&&href;.*/(.*?).html',
|
||||
play_parse: true,
|
||||
lazy: `js:
|
||||
var html = JSON.parse(request(input).match(/r player_.*?=(.*?)</)[1]);
|
||||
var url = html.url;
|
||||
var from = html.from;
|
||||
@ -51,16 +60,15 @@ var rule = {
|
||||
})}
|
||||
}
|
||||
`,
|
||||
limit:6,
|
||||
推荐:'.tab-content&&li;*;*;*;*',
|
||||
一级:'.ewave-vodlist&&li;.lazyload&&title;.lazyload&&data-original;.pic-text&&Text;a&&href',
|
||||
二级:{
|
||||
"title":".picture&&title;.data--span:eq(0)&&Text",
|
||||
"img":".picture&&img&&data-original",
|
||||
"desc":".pic-text:eq(0)&&Text;;;.data--span:eq(1)&&Text;.data--span:eq(2)&&Text",
|
||||
"content":".desc--a&&Text",
|
||||
"tabs":".nav-tabs&&li",
|
||||
"lists":".tab-pane:eq(#id)&&li"
|
||||
limit: 6,
|
||||
推荐: '.tab-content&&li;*;*;*;*',
|
||||
一级: 'body&&.ewave-vodlist__box;h4&&a&&Text;.lazyload&&data-original;.pic-text&&Text;h4&&a&&href',
|
||||
二级: {
|
||||
"title": ".picture&&title;.data--span:eq(0)&&Text",
|
||||
"img": ".picture&&img&&data-original",
|
||||
"desc": ".pic-text:eq(0)&&Text;;;.data--span:eq(1)&&Text;.data--span:eq(2)&&Text",
|
||||
"content": ".desc--a&&Text",
|
||||
"tabs": ".nav-tabs&&li",
|
||||
"lists": ".tab-pane:eq(#id)&&li"
|
||||
},
|
||||
搜索: '.ewave-vodlist__media&&li;a&&title;a&&data-original;.hidden-xs--span&&Text;a&&href',
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user