48 lines
1.9 KiB
JavaScript
48 lines
1.9 KiB
JavaScript
var rule = {
|
|
title:'闪雷影视',
|
|
编码:'gb2312',
|
|
host:'http://114.100.48.52:18008/jdl',
|
|
url:'/List.asp?ClassID=fyclass&page=fypage',
|
|
filterable:0,//是否启用分类筛选,
|
|
class_name:'电影&电视剧&综艺&动漫&音乐&动作片&喜剧片&恐怖片&科幻片&战争片&爱情片',
|
|
class_url:'1&10&8&6&12&1&2&3&4&5&7',
|
|
searchUrl:'/List.asp?classid=30&searchword=**&page=fypage',
|
|
searchable:2,
|
|
quickSearch:1,
|
|
headers:{
|
|
'User-Agent':'MOBILE_UA',
|
|
},
|
|
play_parse:true,
|
|
lazy:$js.toString(() => {
|
|
let playHtml = request(rule.host + '/movie.asp?ClassID=' + input);
|
|
let urls = playHtml.match(/javascript:senfe\(this,\w+,\d+,(\d+),(\d+),"[\w\d]*"\)/);
|
|
if(urls && urls.length >= 3){
|
|
let video = urls[1];
|
|
let movNo = urls[2];
|
|
let playUrl = rule.host + `/PlayMov.asp?ClassId=${input}&video=${video}&exe=0&down=0&movNo=${movNo}&vgver=undefined`;
|
|
let content = request(playUrl);
|
|
let extractedUrl = content.match(/push\('(.*?)'\)/);
|
|
if(extractedUrl && extractedUrl.length>1){
|
|
input = {
|
|
jx:0,
|
|
url:extractedUrl[1],
|
|
parse:0
|
|
};
|
|
}
|
|
}
|
|
}),
|
|
limit:6,
|
|
推荐:'div.lit&&dl;dt&&a&&title;dt&&img&&src;dd:eq(3)&&Text;a&&href',
|
|
一级:'div.lit&&dl;dt&&a&&title;dt&&img&&src;dd:eq(3)&&Text;a&&href',
|
|
二级:{
|
|
title:"div.intro&&ul&&li.h4&&Text",
|
|
img:"div.intro&&div.img&&img&&src",
|
|
desc:"div.intro&&ul&&li:eq(2)&&Text;div.intro&&ul&&li:eq(4)&&Text;div.intro&&ul&&li:eq(3)&&Text;div.intro&&ul&&li:eq(5)&&Text",
|
|
content:"div.textnr&&Text",
|
|
tabs:"#content&&div.title&&h3&&Text",
|
|
lists:"#content&&a[onclick^=\"senfe\"]",
|
|
list_url:'a&&onclick',
|
|
list_text:'a&&Text'
|
|
},
|
|
搜索:'div.list&&dl;dt&&a&&title;dt&&img&&src;dd:eq(1)&&Text;dd&&a&&href',
|
|
} |