mirror of
https://github.com/alantang1977/X.git
synced 2024-12-26 03:24:25 +02:00
37 lines
2.1 KiB
JavaScript
37 lines
2.1 KiB
JavaScript
var rule = {
|
|
title: '大豆',
|
|
host: 'https://dadou.pro',
|
|
class_name:'电影&电视剧&综艺&动漫',
|
|
class_url:'1&2&3&4',
|
|
homeUrl: 'https://dadou.pro',
|
|
searchUrl: '/index.php/ajax/suggest?mid=1&wd=**',
|
|
searchable: 2,
|
|
quickSearch: 0,
|
|
headers:{'User-Agent':'MOBILE_UA'},
|
|
// 分类链接fypage参数支持1个()表达式
|
|
// url: '/index.php/api/vod#type=fyclass&page=fypage',
|
|
url: '/index.php/api/vod#type=fyfilter&page=fypage',
|
|
filterable:1,//是否启用分类筛选,
|
|
filter_url:'{{fl.cateId}}',
|
|
filter: {"1":[{"key":"cateId","name":"分类","value":[{"n":"全部","v":"1"},{"n":"动作片","v":"6"},{"n":"喜剧片","v":"7"},{"n":"爱情片","v":"8"},{"n":"科幻片","v":"11"},{"n":"恐怖片","v":"33"},{"n":"剧情片","v":"30"},{"n":"战争片","v":"39"}]}],"2":[{"key":"cateId","name":"分类","value":[{"n":"全部","v":"2"},{"n":"国产剧","v":"13"},{"n":"港台剧","v":"15"},{"n":"日韩剧","v":"16"},{"n":"动画剧","v":"21"},{"n":"记录剧","v":"22"},{"n":"欧美剧","v":"14"}]}]},
|
|
filter_def:{
|
|
1:{cateId:'1'},
|
|
2:{cateId:'2'},
|
|
3:{cateId:'3'},
|
|
4:{cateId:'4'}
|
|
},
|
|
detailUrl:'/index.php/vod/detail/id/fyid.html',
|
|
推荐:'.list-vod.flex .public-list-box;a&&title;.lazy&&data-original;.public-list-prb&&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=urljoin2(input.split("/i")[0],it.vod_pic);return it});',
|
|
二级:{
|
|
"title":".slide-info-title&&Text;.slide-info:eq(3)--strong&&Text",
|
|
"img":".detail-pic&&data-original",
|
|
"desc":".fraction&&Text;.slide-info-remarks:eq(1)&&Text;.slide-info-remarks:eq(2)&&Text;.slide-info:eq(2)--strong&&Text;.slide-info:eq(1)--strong&&Text",
|
|
"content":"#height_limit&&Text",
|
|
"tabs":".anthology.wow.fadeInUp.animated&&.swiper-wrapper&&a",
|
|
"tab_text":".swiper-slide&&Text",
|
|
"lists":".anthology-list-box:eq(#id) li"
|
|
},
|
|
搜索:'json:list;name;pic;;id',
|
|
}
|