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
889309e981
commit
e893494999
@ -15,29 +15,31 @@ try {
|
||||
vod_director: node["vod_director"],
|
||||
vod_content: node["vod_content"].strip(),
|
||||
};
|
||||
let episodes = node.vod_url_with_player;
|
||||
let playMap = {};
|
||||
if (typeof play_url === "undefined") {
|
||||
var play_url = ""
|
||||
}
|
||||
episodes.forEach(function(ep) {
|
||||
let source = ep["name"];
|
||||
if (!playMap.hasOwnProperty(source)) {
|
||||
playMap[source] = []
|
||||
}
|
||||
// playMap[source].append(ep["url"])
|
||||
playMap[source].append(ep["url"].replace(/影探lfytv.cn(.*).mp4#/,''))
|
||||
});
|
||||
let playFrom = [];
|
||||
let playList = [];
|
||||
Object.keys(playMap).forEach(function(key) {
|
||||
playFrom.append(key);
|
||||
playList.append(playMap[key])
|
||||
});
|
||||
let vod_play_from = playFrom.join("$$$");
|
||||
let vod_play_url = playList.join("$$$");
|
||||
VOD["vod_play_from"] = vod_play_from;
|
||||
VOD["vod_play_url"] = vod_play_url
|
||||
// let episodes = node.vod_url_with_player;
|
||||
// let playMap = {};
|
||||
// if (typeof play_url === "undefined") {
|
||||
// var play_url = ""
|
||||
// }
|
||||
// episodes.forEach(function(ep) {
|
||||
// let source = ep["name"];
|
||||
// if (!playMap.hasOwnProperty(source)) {
|
||||
// playMap[source] = []
|
||||
// }
|
||||
// // playMap[source].append(ep["url"])
|
||||
// playMap[source].append(ep["url"].replace(/影探lfytv.cn(.*).mp4#/,''))
|
||||
// });
|
||||
// let playFrom = [];
|
||||
// let playList = [];
|
||||
// Object.keys(playMap).forEach(function(key) {
|
||||
// playFrom.append(key);
|
||||
// playList.append(playMap[key])
|
||||
// });
|
||||
// let vod_play_from = playFrom.join("$$$");
|
||||
// let vod_play_url = playList.join("$$$");
|
||||
// VOD["vod_play_from"] = vod_play_from;
|
||||
VOD["vod_play_from"] = node["vod_play_from"];
|
||||
// VOD["vod_play_url"] = vod_play_url
|
||||
VOD["vod_play_url"] = node["vod_play_url"].replace(/影探lfytv(.*?)mp4#/g,'')
|
||||
} catch (e) {
|
||||
log("获取二级详情页发生错误:" + e.message)
|
||||
}
|
||||
@ -45,9 +47,9 @@ try {
|
||||
|
||||
var rule = {
|
||||
title: '影探[V2]', // csp_AppYsV2
|
||||
// host: 'http://yt22106.lfytyl.com',
|
||||
host: 'http://www.lyyytv.cn/yt/yt.json',
|
||||
hostJs:'print(HOST);let html=JSON.parse(request(HOST,{headers:{"User-Agent":PC_UA}}));let src = html.sites[0].ext.replace("/api.php/app/","");print(src);HOST=src',//网页域名根动态抓取js代码。通过HOST=赋值
|
||||
host: 'http://ytcms.lfytyl.com',
|
||||
// host: 'http://www.lyyytv.cn/yt/yt.json',
|
||||
// hostJs:'print(HOST);let html=JSON.parse(request(HOST,{headers:{"User-Agent":PC_UA}}));let src = html.sites[0].ext.replace("/api.php/app/","");print(src);HOST=src',//网页域名根动态抓取js代码。通过HOST=赋值
|
||||
homeUrl:'/api.php/app/index_video',
|
||||
url: '/api.php/app/video?tid=fyclassfyfilter&limit=18&pg=fypage',
|
||||
filter_url:'&class={{fl.class}}&area={{fl.area}}&lang={{fl.lang}}&year={{fl.year}}',
|
||||
|
@ -26,7 +26,6 @@ var rule = {
|
||||
"27":[{"key":"by","name":"排序","value":[{"n":"最多热度","v":"hot"},{"n":"编辑精选","v":"pick"},{"n":"最新发布","v":"addtime"}]},{"key":"time","name":"时长","value":[{"n":"全部","v":"all"},{"n":"1分钟以下","v":"0T60"},{"n":"1-5分钟","v":"60T300"},{"n":"5-10分钟","v":"300T600"},{"n":"10-30分钟","v":"600T1800"}]},{"key":"pr","name":"比例","value":[{"n":"全部","v":"0"},{"n":"横屏","v":"1"},{"n":"竖屏","v":"2"}]},{"key":"dpi","name":"清晰","value":[{"n":"全部","v":"all"},{"n":"2K","v":"2k"},{"n":"4K","v":"4k"}]}],
|
||||
"146":[{"key":"by","name":"排序","value":[{"n":"最多热度","v":"hot"},{"n":"编辑精选","v":"pick"},{"n":"最新发布","v":"addtime"}]},{"key":"time","name":"时长","value":[{"n":"全部","v":"all"},{"n":"1分钟以下","v":"0T60"},{"n":"1-5分钟","v":"60T300"},{"n":"5-10分钟","v":"300T600"},{"n":"10-30分钟","v":"600T1800"}]},{"key":"pr","name":"比例","value":[{"n":"全部","v":"0"},{"n":"横屏","v":"1"},{"n":"竖屏","v":"2"}]},{"key":"dpi","name":"清晰","value":[{"n":"全部","v":"all"},{"n":"2K","v":"2k"},{"n":"4K","v":"4k"}]}]
|
||||
},
|
||||
// searchUrl: '/search?page=fypage&kw=**',
|
||||
searchUrl: '/search?kw=**',
|
||||
searchable:2,//是否启用全局搜索,
|
||||
quickSearch:0,//是否启用快速搜索,
|
||||
@ -36,21 +35,62 @@ var rule = {
|
||||
timeout:5000,//网站的全局请求超时,默认是3000毫秒
|
||||
class_parse: '.flex-wrap.ml-8&&.rounded;.px-3&&Text;a&&href;.*/\\w+-(\\d+)',
|
||||
play_parse:true,
|
||||
lazy:`js:
|
||||
let html=request(input);
|
||||
let json=JSON.parse(jsp.pdfh(html, "#__NEXT_DATA__&&Html")).props.pageProps.detail.video.content;
|
||||
input = json.progressive[0].https_url;
|
||||
`,
|
||||
// lazy:`js:
|
||||
// let html=request(input);
|
||||
// let json=JSON.parse(jsp.pdfh(html, "#__NEXT_DATA__&&Html")).props.pageProps.detail.video.content;
|
||||
// input = json.progressive[0].https_url;
|
||||
// `,
|
||||
limit:6,
|
||||
double: true, // 推荐内容是否双层定位
|
||||
推荐: '*',
|
||||
// 一级: 'body&&.YcskN;img&&alt;img&&src;.list-remarks&&Text;a&&href',
|
||||
// 一级: 'body&&.ikELow;img&&alt;img&&src;.px-3.text-xs&&Text;a&&href',
|
||||
// 一级: 'body&&.gVZugC;img&&alt;img&&src;.px-3.text-xs&&Text;a&&href',
|
||||
一级: 'body&&.jPyYqP;img&&alt;img&&src;.px-3.text-xs&&Text;a&&href',
|
||||
二级: '*',
|
||||
// 搜索: 'body&&.w-full.h-auto;*;*;.text-white&&Text&&Text;*',
|
||||
// 搜索: 'body&&.sc-f4e5405b-0;*;*;*;*',
|
||||
// 一级: 'body&&.fAPlpj;img&&alt;img&&src;.px-3.text-xs&&Text;a&&href',
|
||||
一级:`js:
|
||||
var d = [];
|
||||
pdfh = jsp.pdfh;
|
||||
pdfa = jsp.pdfa;
|
||||
pd = jsp.pd;
|
||||
var html = request(input);
|
||||
var dw = pdfh(html,'head&&style:eq(2)&&Html').match(/.*(\\..*?):hover/)[1];
|
||||
let list = pdfa(html, 'body&&'+dw);
|
||||
list.forEach(it => {
|
||||
d.push({
|
||||
title: pdfh(it, "img&&alt"),
|
||||
desc: pdfh(it, ".list-remarks&&Text"),
|
||||
pic_url: pd(it, "img&&src"),
|
||||
url: pd(it, "a&&href")
|
||||
})
|
||||
});
|
||||
setResult(d)
|
||||
`,
|
||||
二级:`js:
|
||||
try {
|
||||
let json = JSON.parse(pdfh(request(input),'#__NEXT_DATA__&&Html'));
|
||||
let node = json.props.pageProps.detail;
|
||||
VOD = {
|
||||
vod_id: node.id,
|
||||
vod_name: node.title,
|
||||
vod_pic: node.cover,
|
||||
type_name: node.editor_tags.map(function(it) {
|
||||
return it.name
|
||||
}).join("/"),
|
||||
vod_year: new Date(node.publish_time * 1000).getFullYear(),
|
||||
vod_area: node.author.userinfo.location.country.name,
|
||||
vod_director: node.author.userinfo.username,
|
||||
vod_content: node.content.replaceAll('\\n','/').strip()
|
||||
};
|
||||
let episodes = node.video.content.progressive;
|
||||
let playMap = {};
|
||||
if (typeof play_url === "undefined") {
|
||||
var play_url = ""
|
||||
}
|
||||
let vod_play_url = episodes.map(function(it) {
|
||||
return it.profile + "$" + it.https_url
|
||||
}).join("#")
|
||||
VOD.vod_play_from = '道长在线';
|
||||
VOD.vod_play_url = vod_play_url
|
||||
} catch (e) {
|
||||
log("获取二级详情页发生错误:" + e.message)
|
||||
}
|
||||
`,
|
||||
搜索: '*',
|
||||
|
||||
}
|
@ -17,8 +17,8 @@ var rule = {
|
||||
'User-Agent': 'MOBILE_UA'
|
||||
},
|
||||
timeout:5000,
|
||||
class_name:'电影&剧集',
|
||||
class_url:'1&2',
|
||||
class_name:'电影&剧集&豆瓣电影Top250&IMDB Top250&高分悬疑片&高分喜剧片&高分传记片&高分爱情片&高分犯罪片&高分恐怖片&高分冒险片&高分武侠片&高分奇幻片&高分历史片&高分战争片&高分歌舞片&高分灾难片&高分情色片&高分西部片&高分音乐片&高分科幻片&高分动作片&高分动画片&高分纪录片&冷门佳片',
|
||||
class_url:'1&2&/top250/&/s/imdbtop250/&/s/suspense/&/s/comedy/&/s/biopic/&/s/romance/&/s/crime/&/s/horror/&/s/adventure/&/s/martial/&/s/fantasy/&/s/history/&/s/war/&/s/musical/&/s/disaster/&/s/erotic/&/s/west/&/s/music/&/s/sci-fi/&s/action/&/s/animation/&/s/documentary/&/s/unpopular/',
|
||||
play_parse:true,
|
||||
lazy:'',
|
||||
limit:6,
|
||||
@ -31,8 +31,7 @@ var rule = {
|
||||
d.push({
|
||||
title: pdfh(it, 'h2&&Text'),
|
||||
desc: pdfh(it, '.me-auto&&Text') + '分 / ' + pdfh(it, '.small&&Text'),
|
||||
// pic_url: pd(it, '.card-img&&style'),
|
||||
pic_url: /!'/.test(pd(it, '.card-img&&style'))?pd(it, '.card-img&&style'):pd(it, '.card-img&&style').replaceAll("'",""),
|
||||
pic_url: pd(it, '.card-img&&style'),
|
||||
url: pd(it, 'a&&href')
|
||||
});
|
||||
})
|
||||
@ -41,14 +40,17 @@ var rule = {
|
||||
一级: `js:
|
||||
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
|
||||
var d = [];
|
||||
if (MY_CATE !== '1' && MY_CATE !== '2') {
|
||||
let turl = (MY_PAGE === 1)? 'index' : 'index_'+ MY_PAGE;
|
||||
input = HOST + MY_CATE + turl + '.html';
|
||||
}
|
||||
var html = request(input);
|
||||
var list = pdfa(html, 'body&&.col');
|
||||
list.forEach(it => {
|
||||
d.push({
|
||||
title: pdfh(it, 'h2&&Text'),
|
||||
desc: pdfh(it, '.me-auto&&Text') + '分 / ' + pdfh(it, '.small&&Text'),
|
||||
// pic_url: pdfh(it, '.card-img&&style'),
|
||||
pic_url: /!'/.test(pd(it, '.card-img&&style'))?pd(it, '.card-img&&style'):pd(it, '.card-img&&style').replaceAll("'",""),
|
||||
pic_url: pdfh(it, '.card-img&&style'),
|
||||
url: pd(it, 'a&&href')
|
||||
});
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user