mirror of
https://github.com/letian1650/N3RD.git
synced 2025-01-25 04:05:17 +08:00
Add files via upload
This commit is contained in:
parent
bcf6280436
commit
8c65af9d8d
@ -1,102 +1,48 @@
|
|||||||
var rule = {
|
var rule = {
|
||||||
title: '可可影视[优]',
|
author: '小可乐/2409/第二版',
|
||||||
host: 'https://www.keke8.app',
|
title: '可可影视',
|
||||||
//host: 'https://keke5.app',
|
类型: '影视',
|
||||||
// url: '/show/fyclass-----2-fypage.html',
|
host: 'https://www.keke7.app',
|
||||||
|
// host: 'https://dl.keke12.com:51111',
|
||||||
|
// hostJs: 'HOST = pdfh(request(HOST), ".section-row-subtitle:eq(0)&&Text")',
|
||||||
|
headers: {'User-Agent': 'MOBILE_UA'},
|
||||||
|
编码: 'utf-8',
|
||||||
|
timeout: 5000,
|
||||||
|
|
||||||
|
homeUrl: '/',
|
||||||
url: '/show/fyclass-fyfilter-fypage.html',
|
url: '/show/fyclass-fyfilter-fypage.html',
|
||||||
filter_url: '{{fl.类型}}-{{fl.地区}}-{{fl.语言}}-{{fl.年份}}-{{fl.排序}}',
|
filter_url: '{{fl.class}}-{{fl.area}}-{{fl.lang}}-{{fl.year}}-{{fl.by}}',
|
||||||
|
detailUrl: '',
|
||||||
searchUrl: '/search?k=**&page=fypage',
|
searchUrl: '/search?k=**&page=fypage',
|
||||||
searchable: 2,
|
searchable: 1,
|
||||||
quickSearch: 0,
|
quickSearch: 1,
|
||||||
filterable: 1,
|
filterable: 1,
|
||||||
headers: {
|
|
||||||
'User-Agent': 'MOBILE_UA',
|
class_name: '电影&剧集&综艺&动漫&短剧',
|
||||||
},
|
class_url: '1&2&4&3&6',
|
||||||
class_parse: '#nav-swiper&&.nav-swiper-slide;a&&Text;a&&href;/(\\w+).html',
|
filter_def: {},
|
||||||
cate_exclude: 'Netflix|今日更新|专题列表|排行榜',
|
图片替换: 'https://www.keke7.app=>https://vres.miximixi.me',
|
||||||
tab_order: ['超清', '蓝光', '极速蓝光'],
|
|
||||||
|
tab_remove: ['4K(高峰不卡)'],
|
||||||
play_parse: true,
|
play_parse: true,
|
||||||
lazy: '',
|
lazy: `js: input = { jx: 0, parse: 1, url: input }`,
|
||||||
limit: 20,
|
|
||||||
推荐: '.section-box:eq(2)&&.module-box-inner&&.module-item;*;*;*;*',
|
limit: 9,
|
||||||
double: false,
|
double: false,
|
||||||
一级: '.module-box-inner&&.module-item;.v-item-title:eq(-1)&&Text;img&&data-original;.v-item-bottom&&span&&Text;a&&href',
|
推荐: '*',
|
||||||
|
一级: '.module-item;.v-item-title:eq(1)&&Text;img:eq(-1)&&data-original;span:eq(-1)&&Text;a&&href',
|
||||||
二级: {
|
二级: {
|
||||||
title: '.detail-title&&Text;.detail-tags&&a:eq(-2)&&Text',
|
title: '.detail-title&&strong:eq(1)&&Text;.detail-tags&&Text',
|
||||||
img: '.detail-pic&&img&&data-original',
|
img: '.detail-pic&&img&&data-original',
|
||||||
desc: '.detail-info-row-main:eq(-2)&&Text;.detail-tags&&a&&Text;.detail-tags&&a:eq(1)&&Text;.detail-info-row-main:eq(1)&&Text;.detail-info-row-main&&Text',
|
desc: '.detail-info-row-main:eq(-2)&&Text;.detail-tags-item:eq(0)&&Text;.detail-tags-item:eq(1)&&Text;.detail-info-row-main:eq(1)&&Text;.detail-info-row-main:eq(0)&&Text',
|
||||||
content: '.detail-desc&&Text',
|
content: '.detail-desc&&Text',
|
||||||
tabs: '.source-item-label',
|
tabs: '.source-item',
|
||||||
lists: '.episode-list:eq(#id) a',
|
tab_text: 'span:eq(-1)&&Text',
|
||||||
|
lists: '.episode-list:eq(#id)&&a',
|
||||||
|
list_text: 'body&&Text',
|
||||||
|
list_url: 'a&&href',
|
||||||
},
|
},
|
||||||
搜索: '.search-result-list&&a;.title&&Text;*;.search-result-item-header&&Text;a&&href;.desc&&Text',
|
搜索: '.search-result-item;img:eq(-1)&&title;*;.search-result-item-header&&Text;*',
|
||||||
// 图片替换:$js.toString(()=>{
|
|
||||||
// log(input);
|
filter: 'H4sIAAAAAA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eZcBWNm85oPgV+qg+54+l3pMBPFchVXsNkT3SWcS0AN1x9kDl4w9UHVyO8b93B1Q9c3cHWFu+skrgKg6tMxllznDU/1aw5fWNZ0zZeiN4TjGYA0ip7pmHYxwmUiWl5jZburYC01JnIHejemn3dFnAnXyYnc6dbu9wRB1TQA9Bqs8t2uYFLBfBz8uXyizPIywyOYwKg9m0sOvdrXGkKfN1OMCdtK79rn1LNAUBa6Zl5RfUBwPg0Pc4h4xzyqeaQqY918srWrMSSdfVy5BZQm3xlA+4OkbtXZnZn9qTFnZi4UxFzn8ntzuwJlDn1cdlAhoLznFI3gM6EWauE5xIFfk6udjfnudUDoH77z0WZ9hgA1L6MP5BhBRL87ydHmsa5qOcxJwDQbvfXtvUUPa1AnwfXpQ9xJQB+zpj/eoa+oRzJZah3588Py44fdpoc3ziPb5zHdc+47vm/1D2fv0fdo83etzxMrDh/U+QBUKQXKqKBeUYBLayUl1kJIx2A+p0MnHYW+wHQfKuP7cIezgfgp3pif9Fm8iFblTDVE/uLNleRpduikdRfpAsfN3LcEAks/gPD+wzBMSEAAA=='
|
||||||
// input = input.replace(rule.host,'https://vres.a357899.cn');
|
|
||||||
// }),
|
|
||||||
//图片替换: 'https://keke5.app=>https://vres.a357899.cn',
|
|
||||||
预处理: $js.toString(() => {
|
|
||||||
let html = request(rule.host);
|
|
||||||
let scripts = pdfa(html, 'script');
|
|
||||||
let img_script = scripts.find(it => pdfh(it, 'script&&src').includes('rdul.js'));
|
|
||||||
if (img_script) {
|
|
||||||
let img_url = img_script.match(/src="(.*?)"/)[1];
|
|
||||||
//console.log(img_url);
|
|
||||||
let img_html = request(img_url);
|
|
||||||
let img_host = img_html.match(/'(.*?)'/)[1];
|
|
||||||
log(img_host);
|
|
||||||
rule.图片替换 = rule.host + '=>' + img_host;
|
|
||||||
}
|
|
||||||
}),
|
|
||||||
filter: 'H4sIAAAAAAAAA+2Zz08bRxTH/xefOdgGtTi3HlqpUpVLe6hURREHV4qa0kN/qFWEZLANxhB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llefNy4hxnQqFO/9wpkPsywGzebKHkCh5X1JgTqSzue+dU0AFCGQimaHMnZ5UH/vMUagCkVfKyjFVFQxjj4fUK1rEMgPodPhcV2mQAUPtk8YFKK5Dgf8rMYVGtPW53AHRUcy5Fo4g7PwBtd7/vyKe40hpMOd9Qa0jlfAxhLMJfWqDb+mbAlc23l/N3+1rwbmZg+s1g+s1gan1snlqf/7n1mbst6+M5L0T/CaYzAGnVA9dxvFOqwcQ0t2bb9NZAWuZCFI5Mb8OhDBP36Z8xTNznfa/SFUe0OQHQbPMrXqWJUwUwJffvP/1zBo2zBl8mF378YVFrGmie3M8zjGHiDJosP3NvaEcFmP6cMC0j0zLyIZeRj/55GTFh+ymPUqv+H5R6AJTqu1XRxBOLBppVuajON5jqANTvbOh38tgPgK639tjbPcDrAYQpK+yv28zJij3fMudw9tdt7myf7Yhm2rySAbz3zFEpsvQnK+G0IDwhAAA=',
|
|
||||||
一级f: `js:
|
|
||||||
let urls = [
|
|
||||||
'https://keke5.app/show/1-----1-1.html',
|
|
||||||
'https://keke5.app/show/2-----1-1.html',
|
|
||||||
'https://keke5.app/show/3-----1-1.html',
|
|
||||||
'https://keke5.app/show/4-----1-1.html',
|
|
||||||
'https://keke5.app/show/6-----1-1.html',
|
|
||||||
];
|
|
||||||
let filters = {};
|
|
||||||
pdfa = jsp.pdfa;
|
|
||||||
pdfh = jsp.pdfh;
|
|
||||||
for(let url of urls){
|
|
||||||
let fclass = url.match(/show\\/(\\d+)-/)[1];
|
|
||||||
console.log(fclass);
|
|
||||||
let html = request(url);
|
|
||||||
let tabs = pdfa(html, '.filter-row');
|
|
||||||
let data = [];
|
|
||||||
for (let tab of tabs) {
|
|
||||||
let title = pdfh(tab, 'strong&&Text').replace(':','');
|
|
||||||
let lis = pdfa(tab, 'a');
|
|
||||||
let _map = {key: title, name: title};
|
|
||||||
let value = [];
|
|
||||||
for (let li of lis) {
|
|
||||||
let n = pdfh(li, 'a&&Text').trim();
|
|
||||||
let v=n;
|
|
||||||
if(/全部|地区|类型/.test(n)){
|
|
||||||
v = '';
|
|
||||||
}else if(/综合/.test(n)){
|
|
||||||
v = '1';
|
|
||||||
}else{
|
|
||||||
v = pdfh(li,'a&&href');
|
|
||||||
try {
|
|
||||||
v = v.match(/-(.*?)1-1\.html/)[1].replace(/-/g,'');
|
|
||||||
}catch (e) {
|
|
||||||
v = v.match(/-(.*?)-1\.html/)[1].replace(/-/g,'');
|
|
||||||
}
|
|
||||||
v = decodeURIComponent(v);
|
|
||||||
}
|
|
||||||
value.push({
|
|
||||||
'n': n, 'v': v
|
|
||||||
});
|
|
||||||
}
|
|
||||||
_map['value'] = value;
|
|
||||||
data.push(_map);
|
|
||||||
}
|
|
||||||
filters[fclass] = data;
|
|
||||||
}
|
|
||||||
VODS = [filters];
|
|
||||||
console.log(gzip(JSON.stringify(filters)));
|
|
||||||
`,
|
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user