mirror of https://github.com/qist/tvbox.git
parent
3f2bccf3df
commit
d3e3ad152b
@ -1,40 +1,62 @@
|
|||||||
var rule = {
|
var rule = {
|
||||||
title:'闪雷影视',
|
title:'闪雷影视',
|
||||||
编码:'gb2312',
|
编码:'gb2312',
|
||||||
host:'http://223.100.63.144:82',
|
host: 'http://114.100.48.52:18008',
|
||||||
url:'/www/List.asp?classid=fyclass&searchword=&page=fypage',
|
|
||||||
filterable:0,//是否启用分类筛选,
|
// 首页
|
||||||
class_name:'电影&电视剧&综艺&动漫&音乐',
|
homeUrl: '/jdl/index.asp',
|
||||||
class_url:'5000&10&8&6&12',
|
|
||||||
searchUrl:'/www/List.asp?classid=30&searchword=**&page=fypage',
|
// 分类页
|
||||||
searchable:2,
|
url: '/jdl/List.asp?ClassID=fyclass&page=fypage',
|
||||||
quickSearch:1,
|
|
||||||
|
// ================= 搜索 =================
|
||||||
|
// ClassId=30 是搜索页,关键词为 GBK
|
||||||
|
searchUrl: '/jdl/List.asp?ClassId=30&type=&searchword=**&page=fypage',
|
||||||
|
searchable: 1,
|
||||||
|
quickSearch: 0,
|
||||||
|
|
||||||
headers: {
|
headers: {
|
||||||
'User-Agent':'MOBILE_UA',
|
'User-Agent': 'PC_UA',
|
||||||
|
'Referer': 'http://114.100.48.52:18008'
|
||||||
},
|
},
|
||||||
play_parse:true,
|
|
||||||
lazy:$js.toString(() => {
|
timeout: 5000,
|
||||||
var html = rule.host + '/PlayMov.asp?ClassId=' + input.split(",")[2] + '&video=2&exe=0&down=0&movNo=' + input.split(",")[3] + '&vgver=undefined&ClientIP=121.16.47.94'
|
|
||||||
var url = request(html).match(/push\('(.*?)'/)[1]
|
// ================= 分类 =================
|
||||||
url = url.replace(/https?:\/\/(?:[\d.]+|[\w\-]+)(?::\d+)?\//, rule.host + '/');
|
class_name: '大陆地区&港台地区&日韩地区&欧美地区&其他地区&动作片&喜剧片&恐怖片&科幻片&战争片&动画片&爱情片&综艺片&剧情片&MTV&连续剧',
|
||||||
input = {
|
class_url: '20&21&22&23&24&1&2&3&4&5&6&7&8&9&12&10',
|
||||||
jx:0,
|
|
||||||
url:url,
|
// ================= 列表页(分类 & 搜索通用) =================
|
||||||
parse:0
|
一级: `
|
||||||
};
|
table tr;
|
||||||
}),
|
a&&Text;
|
||||||
limit:6,
|
img&&src;
|
||||||
推荐:'ul:eq(4)&&strong;img&&alt;img&&src;span:eq(1)&&Text;a&&href',
|
;
|
||||||
一级:'ul:eq(5)&&strong;img&&alt;img&&src;span:eq(1)&&Text;a&&href',
|
a&&href
|
||||||
|
`,
|
||||||
|
|
||||||
|
// ================= 详情页 =================
|
||||||
二级: {
|
二级: {
|
||||||
title:"ul:eq(2)&&li:eq(0)&&Text",
|
title: 'h1&&Text',
|
||||||
img:"img:eq(1)&&src",
|
img: 'img&&src',
|
||||||
desc:"ul:eq(2)&&li:eq(1)&&Text;ul:eq(2)&&li:eq(2)&&Text;ul:eq(2)&&li:eq(3)&&Text",
|
desc: ';;span:eq(0)&&Text;span:eq(1)&&Text;span:eq(2)&&Text',
|
||||||
content:"body&&div:has(p)&&p:eq(3)&&Text",
|
content: 'td&&Text',
|
||||||
tabs:"",
|
tabs: '.playtitle',
|
||||||
lists:'body&&a[onclick^="senfe"]',
|
lists: 'a'
|
||||||
list_url:'a&&onclick',
|
|
||||||
list_text:'a&&Text'
|
|
||||||
},
|
},
|
||||||
搜索:'*',
|
|
||||||
|
// ================= 播放页 =================
|
||||||
|
play_parse: true,
|
||||||
|
lazy: `
|
||||||
|
var html = request(input);
|
||||||
|
|
||||||
|
// 兼容 ASP 老站播放变量
|
||||||
|
var url = html.match(/(http[^'"]+\\.(m3u8|mp4))/i);
|
||||||
|
|
||||||
|
if (url) {
|
||||||
|
input = url[1];
|
||||||
}
|
}
|
||||||
|
`,
|
||||||
|
|
||||||
|
limit: 6
|
||||||
|
};
|
||||||
|
|||||||
Loading…
Reference in new issue