mirror of
https://github.com/qist/tvbox.git
synced 2025-01-24 11:24:52 +08:00
25 lines
1.6 KiB
JavaScript
25 lines
1.6 KiB
JavaScript
var rule = {
|
|
title:'酷客影院',
|
|
host:'http://www.2kuke.com',
|
|
// homeUrl:'/',
|
|
url:'/list/fyclass_fypage.html',
|
|
searchUrl:'/search.php;**',
|
|
搜索:'js:let url=input.split(";")[0];let d=[];let body={searchword:input.split(";")[1]};body="searchword="+input.split(";")[1];fetch_params.body=body;let html=post(url,fetch_params);let pdfa=jsp.pdfa;let pdfh=jsp.pdfh;let pd=jsp.pd;let lists=pdfa(html,"ul.stui-vodlist__media&&li");lists.forEach(function(it){d.push({title:pdfh(it,".title&&Text"),url:pd(it,"a&&href"),desc:pdfh(html,".pic-text&&Text"),pic_url:pd(html,".lazyload&&data-original")})});setResult(d);',
|
|
//搜索:'li.stui-vodlist__item;a&&title;a&&data-original;.pic-text&&Text;a&&href'
|
|
headers:{//网站的请求头,完整支持所有的,常带ua和cookies
|
|
'User-Agent':'MOBILE_UA',
|
|
// "Cookie": "searchneed=ok"
|
|
},
|
|
//class_parse:'.stui-header__menu li.hidden-xs;a&&Text;a&&href;/(\\d+)/',
|
|
class_name:'电影&剧集&综艺&动漫&伦理',
|
|
class_url:'1&2&4&3&6',
|
|
play_parse:true,
|
|
lazy:'',
|
|
limit:8,
|
|
推荐:'.stui-vodlist.clearfix;.stui-vodlist__box;a&&title;a&&data-original;.pic-text&&Text;a&&href',
|
|
double:true, // 推荐内容是否双层定位
|
|
一级:'.stui-vodlist.clearfix li;a&&title;a&&data-original;.pic-text&&Text;a&&href',
|
|
二级:{"title":"h1.line1&&Text;.stui-content__detail p:eq(0)&&Text","img":".lazyload&&data-original","desc":";;;.stui-content__detail p:eq(1)&&Text;.stui-content__detail p:eq(2)&&Text","content":".stui-content__detail p:eq(5)&&Text","tabs":".nav.nav-tabs.pull-right&&li","lists":".stui-content__playlist:eq(#id) li"},
|
|
|
|
}
|