提交 bacfcfd3 编写于 作者: H hjdhnx

增加俩个源,优化免嗅。编码搞不定

上级 8a75777b
var rule={
title:'RP影视',
host:'https://mac.rp123.top',
url:'/vodshow/fyclass--------fypage---/',
searchUrl:'/vodsearch/**----------fypage---/',
searchable:2,
quickSearch:0,
filterable:0,
headers:{'User-Agent':'MOBILE_UA',},
class_name:'电影&电视剧&综艺&动漫&纪录片&4K专区',
class_url:'1&2&3&4&35&40',
play_parse:true,
lazy:'',
limit:6,
推荐:'.tab-list.active;a.module-poster-item.module-item;.module-poster-item-title&&Text;.lazyload&&data-original;.module-item-note&&Text;a&&href',
double:true, // 推荐内容是否双层定位
一级:'body a.module-poster-item.module-item;a&&title;.lazyload&&data-original;.module-item-note&&Text;a&&href',
二级:{"title":"h1&&Text;.module-info-tag&&Text","img":".lazyload&&data-original","desc":".module-info-item:eq(1)&&Text;.module-info-item:eq(2)&&Text;.module-info-item:eq(3)&&Text","content":".module-info-introduction&&Text","tabs":".module-tab-item.tab-item","lists":".module-play-list:eq(#id) a"},
搜索:'body .module-item;.module-card-item-title&&Text;.lazyload&&data-original;.module-item-note&&Text;a&&href;.module-info-item-content&&Text',
}
\ No newline at end of file
3.9.7beta2
\ No newline at end of file
3.9.7beta3
\ No newline at end of file
var rule = {
title:'有声小说吧',
编码:'gb2312',
host:'http://m.ysxs8.vip',
url:'/downlist/fyclass_fypage.html',
searchUrl:'/search.asp?page=fypage&searchword=**&searchtype=-1',
searchable:2,
quickSearch:0,
headers:{
'User-Agent':'MOBILE_UA'
},
timeout:5000,
class_name:'网络玄幻&恐怖悬疑&传统武侠&都市言情&官场刑侦&历史军事&探险盗墓&职场商战&明朝那些事儿&评书下载&相声戏曲&人物传记&广播剧&百家讲坛&外语读物&有声文学&儿童读物&管理营销',
class_url:'r52&r17&r12&r13&r14&r15&r45&r81&r36&r3&r7&r16&r18&r32&r35&r41&r4&r6',
play_parse:true,
lazy:'',
limit:6,
double:true,
推荐:'.list-ul;a;.list-name&&Text;img&&data-original;.module-slide-author&&Text;a&&href',
一级:'.book-ol&&li;h4&&Text;img&&data-original;.book-submeta&&Text;a&&href',
二级:{title:'h2&&Text',img:'.bookimg&&img&&data-original',desc:'.book-rand-a:eq(0)&&Text;.book-rand-a:eq(1)&&Text;.book-rand-a:eq(2)&&Text;.book-rand-a:eq(3)&&Text',content:'.book_intro&&Text',tabs:'.list-contitle&&h3',lists:'#playlist:eq(#id)&&ul&&li'},
搜索:'*',
}
......@@ -850,6 +850,9 @@ function request(url,obj){
}
obj.headers = headers;
}
if(rule.encoding&&rule.encoding!=='utf-8'){
obj.headers["content-type"] = "text/html; charset="+rule.encoding;
}
console.log(JSON.stringify(obj.headers));
if(typeof(obj.headers.body)!='undefined'&&obj.headers.body&&typeof (obj.headers.body)==='string'){
let data = {};
......@@ -1514,6 +1517,19 @@ function detailParse(detailObj){
})
}
/**
* 判断是否需要解析
* @param url
* @returns {number|number}
*/
function tellIsJx(url){
try {
let is_vip = !/\.(m3u8|mp4|m4a)$/.test(url.split('?')[0]) && 是否正版(url);
return is_vip?1:0
}catch (e) {
return 1
}
}
/**
* 选集播放点击事件解析
* @param playObj
......@@ -1531,7 +1547,8 @@ function playParse(playObj){
var input = MY_URL;//注入给免嗅js
let common_play = {
parse:1,
url:input
url:input,
jx:tellIsJx(input)
};
let lazy_play;
if(!rule.play_parse||!rule.lazy){
......@@ -1543,7 +1560,7 @@ function playParse(playObj){
eval(lazy_code);
lazy_play = typeof(input) === 'object'?input:{
parse:1,
jx:1,
jx:tellIsJx(input),
url:input
};
}catch (e) {
......
此差异已折叠。
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册