YH/js/4KA影视.js
2024-10-18 00:30:22 -05:00

64 lines
1.7 KiB
JavaScript

var rule = {
类型: '影视',
title: '4K-AV',
host: 'https://4k-av.com',
url: '/fyclass/page-fypage.html',
searchUrl: '/s?q=**',
searchable: 2,
quickSearch: 0,
headers: {
'User-Agent': 'IOS_UA',
},
timeout: 5000,
class_name: '电视剧&电影',
class_url: 'tv&movie',
play_parse: true,
lazy: $js.toString(() => {
input = {parse: 1, url: input, header: rule.headers, js: ''}
}),
double: true,
推荐: '#recommlist;ul&&li;h2&&Text;img&&src;span&&Text;a&&href',
一级: '#MainContent_newestlist&&.NTMitem;h2&&Text;img&&src;div.resyear&&Text;a&&href',
二级: {
title: 'h2&&Text;#MainContent_tags&&Text',
img: 'img&&src',
desc: '#MainContent_videodetail&&label&&Text;#MainContent_videodetail&&label:eq(2)&&Text;;;',
content: '',
tabs: '',
// lists: '#rtlist:eq(#id) li',
tab_text: '4K-AV',
lists: $js.toString(() => {
LISTS = [];
pdfa(html,'body&&.flexcolumn').forEach((it) => {
let lis = pdfa(it,'#rtlist&&li');
let lis1 = [];
if (lis.length === 0) {
let firstT = request(input).match(/<source src="(.*?)"/)[1];
lis1.push('01' +'$' + firstT); // 直接添加自定义字符串
} else {
let firstItem = lis[0];
let firstTT = request(input).match(/<source src="(.*?)"/)[1];
if (firstTT && firstTT!== '') {
let tt = pdfh(firstItem,'.screenshot&&span&&Text');
lis1.push(tt + '$' + firstTT);
}
for(let index = 1; index < lis.length; index++) {
let item = lis[index];
let tt = pdfh(item,'.screenshot&&span&&Text');
let uu = pd(item,'a&&href', MY_URL);
lis1.push(tt + '$' + uu);
}
}
LISTS.push(lis1);
});
}),
},
搜索: '*',
}