N3RDN/JN/dr_py/js/永乐视频.js
2024-08-09 08:25:05 +08:00

29 lines
871 B
JavaScript

var rule = {
title: '永乐视频',
模板: 'mxpro',
host: 'https://www.ylys.tv', // homeUrl:'/',
url: '/vodshow/fyclass--------fypage---.html',
searchUrl: '/vodsearch/**----------fypage---/',
class_parse: '.navbar-items li:lt(6);a&&Text;a&&href;/(\\d+)',
play_parse: true,
lazy: `js:
let html = request(input);
let hconf = html.match(/r player_.*?=(.*?)</)[1];
let json = JSON5.parse(hconf);
let url = json.url;
if (json.encrypt == '1') {
url = unescape(url);
} else if (json.encrypt == '2') {
url = unescape(base64Decode(url));
}
if (/\\.(m3u8|mp4|m4a|mp3)/.test(url)) {
input = {
parse: 0,
jx: 0,
url: url,
};
} else {
input;
}`,
搜索: 'body .module-item;.module-card-item-title&&Text;.lazyload&&data-original;.module-item-note&&Text;a&&href;.module-card-item-info&&Text',
}