N3RDN/JN/dr_py/js/看剧网.js
2024-08-01 15:21:48 +08:00

30 lines
1.7 KiB
JavaScript

var rule = {
title: '看剧网',
host: 'https://www.kanjuw.net',
url: '/list/?fyclass-fypage.html',
searchUrl: '/search.php?page=fypage&searchword=**&searchtype=',
searchable: 2,
quickSearch: 0,
filterable: 0,
headers: {
'User-Agent': 'PC_UA',
},
class_name: '电影&剧集&综艺&动漫',
class_url: '1&2&3&4',
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 }",
limit: 6,
double: true,
推荐: 'ul.myui-vodlist.clearfix;li;a&&title;img&&data-original;.pic-text&&Text;a&&href',
double: true,
一级: '.myui-vodlist li;a&&title;img&&data-original;.pic-text.text-right&&Text;a&&href',
二级: {
title: '.myui-content__detail .title--span&&Text;.myui-content__detail p.data:eq(3)&&Text',
img: '.myui-content__thumb .lazyload&&data-original',
desc: '.myui-content__detail p.otherbox&&Text;.year&&Text;.myui-content__detail p.data:eq(4)&&Text;.myui-content__detail p.data:eq(2)&&Text;.myui-content__detail p.data:eq(0)&&Text',
content: '.desc.text-collapse&&span:eq(1)&&Text',
tabs: '.nav-tabs:eq(0) li',
lists: '.myui-content__list:eq(#id) li',
},
搜索: '#searchList li;a&&title;.lazyload&&data-original;.pic-text&&Text;a&&href;.detail&&Text',
}