mirror of
https://github.com/alantang1977/X.git
synced 2024-12-30 20:53:11 +02:00
44 lines
No EOL
1.7 KiB
JavaScript
44 lines
No EOL
1.7 KiB
JavaScript
var rule = {
|
|
title: '喵物次元',
|
|
host: 'https://catw.moe',
|
|
模板:'短视2',
|
|
searchUrl: '/index.php/vod/search/wd/**.html',
|
|
url:'/index.php/api/vod#type=fyclass&page=fypage',
|
|
searchable: 2,//是否启用全局搜索,
|
|
quickSearch: 1,//是否启用快速搜索,
|
|
filterable: 0,//是否启用分类筛选,
|
|
headers: {
|
|
'User-Agent': 'MOBILE_UA'
|
|
},
|
|
play_parse: true,
|
|
lazy: '',
|
|
limit: 6,
|
|
class_name:'TV动画&剧场版&特摄剧',
|
|
class_url:'1&2&20',
|
|
double: false, // 推荐内容是否双层定位
|
|
推荐: '.public-list-exp;a&&title;img&&data-src;.ft2&&Text;a&&href',
|
|
一级:`js:
|
|
let body = input.split("#")[1];
|
|
let t = Math.round(new Date / 1e3).toString();
|
|
let key = md5("DS" + t + "DCC147D11943AF75");
|
|
let url = input.split("#")[0];
|
|
body = body + "&time=" + t + "&key=" + key;
|
|
print(body);
|
|
fetch_params.body = body;
|
|
let html = post(url, fetch_params);
|
|
let data = JSON.parse(html);
|
|
VODS = data.list.map(function(it) {
|
|
it.vod_pic = it.vod_pic.replace(/mac/, "https");
|
|
return it
|
|
});
|
|
`,
|
|
二级: {
|
|
"title": "h1&&Text;.hl-ma0&&Text",
|
|
"img": ".module-item-pic&&img&&data-src",
|
|
"desc": ".slide-info-remarks&&Text;.video-info-items:eq(2)&&Text;.video-infs&&Text;.video-info-item:eq(1)&&Text;.video-info-items:eq(0)&&Text",
|
|
"content": "#height_limit&&Text",
|
|
"tabs": ".anthology-tab&&a",
|
|
"lists": ".anthology-list-box:eq(#id)&&li"
|
|
},
|
|
搜索: '.public-list-box;.thumb-txt&&Text;.public-list-exp&&img&&data-src;.public-list-prb&&Text;a&&href'
|
|
} |