mirror of
https://github.com/letian1650/N3RD.git
synced 2025-01-25 04:05:17 +08:00
31 lines
1.6 KiB
JavaScript
31 lines
1.6 KiB
JavaScript
|
var rule = {
|
||
|
title: '功夫熊猫',
|
||
|
host: 'https://www.kongfutv.com',
|
||
|
searchUrl: '/vodsearch/**----------fypage---.html',
|
||
|
url: '/vodshow/fyclass--------fypage---.html',
|
||
|
headers: {
|
||
|
'User-Agent': 'MOBILE_UA',
|
||
|
},
|
||
|
timeout: 5000,
|
||
|
class_parse: 'body&&.hl-nav li;a&&Text;a&&href;.*/(.*?).html',
|
||
|
cate_exclude: 'VIP|专题|最新|排行',
|
||
|
limit: 40,
|
||
|
play_parse: true,
|
||
|
lazy: "js:\n let html = request(input);\n let hconf = html.match(/r player_.*?=(.*?)</)[1];\n let json = JSON5.parse(hconf);\n let url = json.url;\n if (json.encrypt == '1') {\n url = unescape(url);\n } else if (json.encrypt == '2') {\n url = unescape(base64Decode(url));\n }\n if (/\\.(m3u8|mp4|m4a|mp3)/.test(url)) {\n input = {\n parse: 0,\n jx: 0,\n url: url,\n };\n } else {\n input = url && url.startsWith('http') && tellIsJx(url) ? {parse:0,jx:1,url:url}:input;\n }",
|
||
|
double: true,
|
||
|
推荐: '.hl-vod-list;li;a&&title;a&&data-original;.remarks&&Text;a&&href',
|
||
|
一级: '.hl-vod-list&&.hl-list-item;a&&title;a&&data-original;.remarks&&Text;a&&href',
|
||
|
二级: {
|
||
|
title: '.hl-dc-title&&Text;.hl-dc-content&&li:eq(6)&&Text',
|
||
|
img: '.hl-lazy&&data-original',
|
||
|
desc: '.hl-dc-content&&li:eq(10)&&Text;.hl-dc-content&&li:eq(4)&&Text;.hl-dc-content&&li:eq(5)&&Text;.hl-dc-content&&li:eq(2)&&Text;.hl-dc-content&&li:eq(3)&&Text',
|
||
|
content: '.hl-content-text&&Text',
|
||
|
tabs: '.hl-tabs&&a',
|
||
|
tab_text: 'a--span&&Text',
|
||
|
lists: '.hl-plays-list:eq(#id)&&li',
|
||
|
},
|
||
|
搜索: '.hl-list-item;a&&title;a&&data-original;.remarks&&Text;a&&href',
|
||
|
searchable: 2,
|
||
|
quickSearch: 0,
|
||
|
filterable: 0,
|
||
|
}
|