update JS

This commit is contained in:
chuqiuyu 2023-08-23 16:42:49 +08:00
parent ded31e6514
commit 248f5699b0
6 changed files with 162 additions and 12 deletions

View File

@ -47,6 +47,7 @@
{"key":"kuqimv","name":"MV | 酷奇[cat]","type":3,"api":"./js/kuqimv_open.js"},
{"key":"230ts","name":"听书 | 听书[cat]","type":3,"api":"./js/230ts_open.js"},
{"key":"drpy_js_爱看机器人","name":"影视 | 爱看机器人新版[js]","type":3,"api":"./lib/drpy2.min.js","searchable":1,"quickSearch":1,"changeable":1,"ext":"./js/爱看机器人.js"},
{"key":"drpy_js_ikanbot2","name":"影视 | 爱看机器人2[js]","type":3,"api":"./lib/drpy2.min.js","searchable":1,"quickSearch":1,"changeable":1,"ext":"./js/ikanbot2.js"},
{"key":"drpy_js_ikanbot3","name":"影视 | 爱看机器人3[js]","type":3,"api":"./lib/drpy2.min.js","searchable":1,"quickSearch":1,"changeable":1,"ext":"./js/ikanbot3.js"},
{"key":"drpy_js_荐片","name":"影视 | 荐片[js]","type":3,"api":"./lib/drpy2.min.js","searchable":1,"quickSearch":1,"changeable":1,"ext":"./js/荐片.js"},

View File

@ -19,7 +19,12 @@ VOD.vod_name = pdfh(html1, "h2&&Text");
VOD.vod_content = "";
log(VOD);
input = "https://www.ikanbot.com/api/getResN?videoId=" + input.split("/").pop() + "&mtype=2";
let html = request(input);
let html = request(input, {
headers: {
'User-Agent':'PC_UA',
'Referer': input,
}
});
print(html);
html = JSON.parse(html);
let episodes = html.data.list;

View File

@ -18,7 +18,12 @@ try {
VOD.vod_content = "";
log(VOD);
input = "https://www.ikanbot.com/api/getResN?videoId=" + input.split("/").pop() + "&mtype=2";
let html = request(input);
let html = request(input, {
headers: {
'User-Agent':'PC_UA',
'Referer': input,
}
});
print(html);
html = JSON.parse(html);
let episodes = html.data.list;

108
js/爱看机器人.js Normal file
View File

@ -0,0 +1,108 @@
var 二级=`js:
try {
VOD={};
let html1 = request(input);
pdfh = jsp.pdfh;
VOD.vod_id = pdfh(html1, "#current_id&&value");
VOD.vod_name = pdfh(html1, "h2&&Text");
// VOD.vod_pic = pdfh(html1, ".item-root&&img&&src");
VOD.vod_pic = pdfh(html1, ".item-root&&img&&data-src");
// VOD.vod_actor = pdfh(html1, ".celebrity&&Text");
VOD.vod_actor = pdfh(html1, ".meta:eq(4)&&Text");
// VOD.vod_area = pdfh(html1, ".country&&Text");
VOD.vod_area = pdfh(html1, ".meta:eq(3)&&Text");
// VOD.vod_year = pdfh(html1, ".year&&Text");
VOD.vod_year = pdfh(html1, ".meta:eq(2)&&Text");
VOD.vod_remarks = "";
VOD.vod_director = "";
VOD.vod_content = "";
log(VOD);
var v_tks = '';
let script = pdfa(html1,'script').find(it=>it.includes('v_tks+=')).replace(/<script>|<\\/script>/g,'');
// print(script);
eval(script);
print('v_tks:'+v_tks);
input = "https://www.ikanbot.com/api/getResN?videoId=" + input.split("/").pop() + "&mtype=2"+"&token="+v_tks;
let html = request(input,{headers: {'User-Agent':'PC_UA','Referer': input}});
print(html);
html = JSON.parse(html);
let episodes = html.data.list;
let playMap = {};
if (typeof play_url === "undefined") {
var play_url = ""
}
episodes.forEach(function(ep) {
let playurls = JSON.parse(ep["resData"]);
playurls.forEach(function(playurl) {
let source = playurl["flag"];
if (!playMap.hasOwnProperty(source)) {
playMap[source] = []
}
playMap[source].push(playurl["url"])
})
});
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;
log(VOD);
} catch (e) {
log("获取二级详情页发生错误:" + e.message)
}
`;
var rule = {
title:'爱看机器人',
host:'https://www.ikanbot.com',
url:'/hot/index-fyclass-fyfilter-p-fypage.html[/hot/index-fyclass-fyfilter.html]',
//https://www.ikanbot.com/search?q=%E6%96%97%E7%BD%97%E5%A4%A7&p=2
searchUrl:'/search?q=**&p=fypage',
searchable:2,
quickSearch:0,
filterable:1,
filter_url:'{{fl.tag}}',
// 图片来源:'@Referer=https://api.douban.com/@User-Agent=Mozilla/5.0%20(Windows%20NT%2010.0;%20Win64;%20x64)%20AppleWebKit/537.36%20(KHTML,%20like%20Gecko)%20Chrome/113.0.0.0%20Safari/537.36',
图片来源:'@Referer=https://www.ikanbot.com/@User-Agent=Mozilla/5.0%20(Windows%20NT%2010.0;%20Win64;%20x64)%20AppleWebKit/537.36%20(KHTML,%20like%20Gecko)%20Chrome/113.0.0.0%20Safari/537.36',
filter:{
"movie":[{"key":"tag","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":"豆瓣top250","v":"豆瓣top250"}]}]
,"tv":[{"key":"tag","name":"标签","value":[{"n":"热门","v":"热门"},{"n":"美剧","v":"美剧"},{"n":"英剧","v":"英剧"},{"n":"韩剧","v":"韩剧"},{"n":"日剧","v":"日剧"},{"n":"国产剧","v":"国产剧"},{"n":"港剧","v":"港剧"},{"n":"日本动画","v":"日本动画"},{"n":"综艺","v":"综艺"},{"n":"纪录片","v":"纪录片"}]}]
},
filter_def:{
movie:{tag:'热门'},
tv:{tag:'国产剧'},
},
filter获取方法:`
let value = [];
$('ul').eq(2).find('li').each(function() {
// console.log($(this).text());
let n = $(this).text().trim();
value.push({
'n': n, 'v': n
});
});
// 电影执行:
let data = {'movie': [{'key': 'tag', 'name': '标签', 'value': value}]};
console.log(JSON.stringify(data));
//剧集执行:
let data = {'tv': [{'key': 'tag', 'name': '标签', 'value': value}]};
console.log(JSON.stringify(data));
`,
headers:{'User-Agent':'PC_UA',},
class_name:'电影&剧集',
class_url:'movie&tv',
play_parse:true,
double:true,
推荐:'.v-list;div.item;*;*;*;*', //这里可以为空,这样点播不会有内容
// 一级:'.v-list&&div.item;p&&Text;img&&src;;a&&href', //一级的内容是推荐或者点播时候的一级匹配
一级:'.v-list&&div.item;p&&Text;img&&data-src;;a&&href', //一级的内容是推荐或者点播时候的一级匹配
二级:二级,
// 搜索:'#search-result&&.media;h5&&a&&Text;a&&img&&data-src;.label&&Text;a&&href',//第三个是描述,一般显示更新或者完结
搜索:'.col-md-8&&.media;h5&&a&&Text;a&&img&&data-src;.label&&Text;a&&href',//第三个是描述,一般显示更新或者完结
}

View File

@ -1,16 +1,16 @@
/*
永久地址发布 https://www.gvideo.me/label/web.html (失效)
域名1https://www.moguys.xyz
域名2https://www.gvideo.me (维护中)
域名3https://www.movie4k.pro (失效)
永久地址发布 https://www.moguys.xyz
域名1https://www.muguys.com
域名2https://www.movie4k.vip
*/
muban.mxone5.二级.title = 'h1&&Text;.video-info-aux&&Text';
muban.mxone5.二级.desc = '.video-info-items:eq(4)&&Text;;;.video-info-actor:eq(1)&&Text;.video-info-actor:eq(0)&&Text';
var rule = {
title:'蘑菇',
模板:'mxone5',
host:'https://www.moguys.xyz',
// host:'https://www.moguys.xyz/label/web.html',
host:'https://www.muguys.com',
// host:'https://www.movie4k.vip',
// host:'https://www.moguys.xyz',
// hostJs:'print(HOST);let html=request(HOST,{headers:{"User-Agent":PC_UA}});let src=jsp.pdfh(html,"p:eq(0)&&a:eq(0)&&href");print(src);HOST=src',
url:'/vodshow/fyfilter.html',
// homeUrl:'/vodshow/13--score---------.html',
@ -40,10 +40,14 @@ var rule = {
'User-Agent':'PC_UA'
},
// class_parse: '.library-list&&a;a&&Text;a&&href;/(\\d+)',
class_parse: 'div.subw500&&a;a&&title;a&&href;/(\\d+)',
// class_parse: 'div.subw500&&a;a&&title;a&&href;/(\\d+)',
class_parse: 'ul.grid-items&&li;a&&title;a&&href;/(\\d+).html',
lazy:`js:
var html = JSON.parse(request(input).match(/r player_.*?=(.*?)</)[1]);
var url = html.url;
var from = html.from;
var next = html.link_next;
var title = html.vod_data.vod_name;
if (html.encrypt == "1") {
url = unescape(url)
} else if (html.encrypt == "2") {
@ -51,6 +55,30 @@ var rule = {
}
if (/m3u8|mp4/.test(url)) {
input = url
} else if (/kmm3u8/.test(from)) {
var paurl = request(HOST + '/static/player/' + from + ".js").match(/ src="(.*?)'/)[1];
var purl = request(paurl + url + "&next=" + next + "&title=" + title + '&thumb=undefined');
var ptime = purl.match(/"time":"(.*?)"/)[1];
var pkey = purl.match(/"key":"(.*?)"/)[1];
var apiurl = 'https://player.moguys.xyz/111/api_config.php';
var pxurl = JSON.parse(request(apiurl, {
body: 'url=' + url + '&time=' + ptime + '&key=' + pkey,
method: 'POST'
})).url;
input = {
jx: 0,
url: pxurl,
parse: 0
}
} else if (/ali/.test(from)) {
var paurl = request(HOST + '/static/player/' + from + ".js").match(/ src="(.*?)'/)[1];
var purl = request(paurl + url + "&next=" + next + "&title=" + title);
var pxurl = purl.match(/"url":"(.*?)"/)[1];
input = {
jx: 0,
url: pxurl,
parse: 0
}
} else {
input
}

View File

@ -1,12 +1,15 @@
var rule = {
title:'酷奇MV',
host:'https://www.kuqimv.com',
homeUrl:'/play/',
// homeUrl:'/play/',
url:'/play/fyclass_fypage.html',
searchUrl:'/search.php?key=**&pages=fypage',
searchable:2,
quickSearch:0,
class_parse:'.main:eq(1)&&li;a&&Text;a&&href;.*/(\\d+)_1.html',
// class_parse:'.main:eq(1)&&li;a&&Text;a&&href;.*/(\\d+)_1.html',
// class_parse:'.lei_class&&a;a&&Text;a&&href;.*/(\\d+)_1.html',
class_name:'华语高清&日韩精选&欧美MV&高清现场&影视MV&夜店视频&车模视频&热舞视频&美女写真&美女打碟',
class_url:'1&2&3&4&5&6&7&8&9&10',
headers:{
'User-Agent':'MOBILE_UA'
},
@ -19,4 +22,4 @@ var rule = {
一级:'js:var d=[];pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;var html=request(input);let list=pdfa(html,".mv_list&&li");list.forEach((it)=>{d.push({title:pdfh(it,".name&&Text"),desc:"🎤"+pdfh(it,".singer&&Text")+""+pdfh(it,".time&&Text"),pic_url:pd(it,"img&&src"),url:pd(it,"a&&href"),})});setResult(d);',
二级:'*',
搜索:'.video_list&&li;a&&title;;.singer&&Text;a&&href;.t_03:eq(1)&&Text',
}
}