mirror of https://github.com/qist/tvbox
Add files via upload
This commit is contained in:
parent
3915285367
commit
71fe28f572
|
@ -1,6 +1,8 @@
|
|||
muban.首图2.二级.tabs = '.nav-tabs.dpplay&&li';
|
||||
var rule = Object.assign(muban.首图2,{
|
||||
title:'007影视',
|
||||
ali_token:'{{ali_token}}',
|
||||
bili_cookie:'{{bili_cookie}}',
|
||||
host:'https://www.007ts.me',
|
||||
url:'/channel/fyclass-fypage.html',
|
||||
searchUrl:'/search/**----------fypage---.html',
|
||||
|
|
37
js/NY影院.js
37
js/NY影院.js
|
@ -1,21 +1,18 @@
|
|||
var rule={
|
||||
title:'NY影院',
|
||||
host:'https://www.nycvod.com',
|
||||
url:'/vodshow/fyclass--------fypage---.html',
|
||||
searchUrl:'/vodsearch/**----------fypage---.html',
|
||||
searchable:2,//是否启用全局搜索,
|
||||
quickSearch:0,//是否启用快速搜索,
|
||||
filterable:0,//是否启用分类筛选,
|
||||
//class_parse:'.nav-menu-items&&li;a&&Text;a&&href;.*/(.*?).html',
|
||||
//cate_exclude:'演员',
|
||||
class_name:'电影&电视剧&综艺&动漫&纪录片&竞技体育&国产剧&港台剧&日韩剧&欧美剧&新马泰&其他',
|
||||
class_url:'1&2&26&32&23&40&13&15&14&16&24&25',
|
||||
play_parse:true,
|
||||
lazy:'',
|
||||
limit:6,
|
||||
推荐:'.module-list;.module-items&&.module-item;a&&title;img&&data-src;.module-item-text&&Text;a&&href',
|
||||
double:true, // 推荐内容是否双层定位
|
||||
一级:'.module-items .module-item;a&&title;img&&data-src;.module-item-text&&Text;a&&href',
|
||||
二级:{"title":"h1&&Text;.tag-link&&Text","img":".module-item-pic&&img&&data-src","desc":".video-info-items:eq(-2)&&Text;.video-info-items:eq(-1)&&Text;.video-info-items:eq(-2)&&Text;.video-info-items:eq(1)&&.video-info-item&&Text;.video-info-items:eq(0)&&.video-info-item&&Text","content":".vod_content&&Text","tabs":".module-tab-item","lists":".module-player-list:eq(#id)&&.scroll-content&&a"},
|
||||
搜索:'.module-items .module-search-item;h3&&Text;*;.video-serial&&Text;*',
|
||||
var rule={
|
||||
title:'NY影院',
|
||||
host:'https://www.nycvod.com',
|
||||
url:'/vodshow/fyclass--------fypage---.html',
|
||||
searchUrl:'/vodsearch/**----------fypage---.html',
|
||||
searchable:2,//是否启用全局搜索,
|
||||
quickSearch:0,//是否启用快速搜索,
|
||||
filterable:0,//是否启用分类筛选,
|
||||
//class_parse:'.nav-menu-items&&li;a&&Text;a&&href;.*/(.*?).html',
|
||||
//cate_exclude:'演员',
|
||||
class_name:'电影&电视剧&综艺&动漫&纪录片&竞技体育&国产剧&港台剧&日韩剧&欧美剧&新马泰&其他',
|
||||
class_url:'1&2&3&4&29&5&30&16&18&47&14&13',
|
||||
推荐:'.module-poster-item;a&&title;.lazyload&&data-original;.module-item-note&&Text;a&&href',
|
||||
一级:'.module-poster-item;a&&title;.lazyload&&data-original;.module-item-note&&Text;a&&href',
|
||||
//二级:{"title":"h1&&Text;","img":".lazyload&&data-original","desc":";;.module-info-item:eq(4) p&&Text;.module-info-item:eq(3) div&&Text;.module-info-item:eq(1) a&&Text","content":".show-desc&&Text","tabs":'#y-playList&&span',"lists":".module-play-list:eq(#id) a"},
|
||||
二级:{"title":"h1&&Text;.module-info-tag-link:eq(2)&&Text","img":".lazyload&&data-original","desc":".module-info-content&&.module-info-item:eq(-2)&&Text;.module-info-content&&.module-info-item:eq(-2)&&Text;.module-info-content&&.module-info-item:eq(-2)&&Text;.module-info-content&&.module-info-item:eq(2)&&.module-info-item-content&&Text;.module-info-content&&.module-info-item:eq(1)&&.module-info-item-content&&Text","content":".module-info-introduction-content&&Text","tabs":".module-tab-items-box:eq(0)&&.module-tab-item","lists":".module-list:eq(#id)&&.module-play-list-content a"},
|
||||
搜索:'.module-card-item;.module-card-item-title&&Text;.lazyload&&data-original;.module-item-note&&Text;a&&href',
|
||||
}
|
||||
|
|
|
@ -1,24 +1,9 @@
|
|||
[
|
||||
{
|
||||
"name" : "丫仙女",
|
||||
"name" : "🙋丫仙女",
|
||||
"server" : "http://alist.xiaoya.pro/",
|
||||
"startPage" : "/",
|
||||
"showAll" : false,
|
||||
"search" : true,
|
||||
"params" : {
|
||||
"/abc" : {
|
||||
"password" : "123"
|
||||
},
|
||||
"/abc/abc" : {
|
||||
"password" : "123"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name" : "🦀9T(Adult)",
|
||||
"server" : "https://drive.9t.ee",
|
||||
"startPage" : "/",
|
||||
"showAll" : false,
|
||||
"search" : true
|
||||
},
|
||||
{
|
||||
|
|
|
@ -2,5 +2,6 @@ var rule = {
|
|||
title:'cokemv',
|
||||
模板:'mxpro',
|
||||
host:'https://cokemv.me',
|
||||
tab_exclude:'排序',
|
||||
class_parse:'.navbar-items li:gt(1):lt(7);a&&Text;a&&href;/(\\d+).html',
|
||||
}
|
|
@ -8,7 +8,7 @@ var rule = {
|
|||
quickSearch:1,
|
||||
filterable:1,
|
||||
// 分类链接fypage参数支持1个()表达式
|
||||
url:'/?pg=fypage&class=fyclass&douban=',
|
||||
url:'/?pg=fypage&class=fyclass&douban={{douban}}',
|
||||
filter_url:'fl={{fl}}',
|
||||
headers:{
|
||||
"Host": "frodo.douban.com",
|
||||
|
@ -30,7 +30,7 @@ var rule = {
|
|||
lazy:'',
|
||||
// 推荐:'.list_item;img&&alt;img&&src;a&&Text;a&&data-float',
|
||||
一级:'',
|
||||
一级:'js:let d=[];let douban=input.split("douban=")[1].split("&")[0];let douban_api_host="http://api.douban.com/api/v2";let miniapp_apikey="0ac44ae016490db2204ce0a042db2916";const count=30;function miniapp_request(path,query){try{let url=douban_api_host+path;query.apikey=miniapp_apikey;fetch_params.headers=oheaders;url=buildUrl(url,query);let html=fetch(url,fetch_params);if(/request_error/.test(html)){print(html)}return JSON.parse(html)}catch(e){print("发生了错误:"+e.message);return{}}}function cate_filter(d,douban){douban=douban||"";try{let res={};if(MY_CATE==="interests"){if(douban){let status=MY_FL.status||"mark";let subtype_tag=MY_FL.subtype_tag||"";let year_tag=MY_FL.year_tag||"全部";let path="/user/"+douban+"/interests";res=miniapp_request(path,{type:"movie",status:status,subtype_tag:subtype_tag,year_tag:year_tag,start:(MY_PAGE-1)*count,count:count})}else{return{}}}else if(MY_CATE==="hot_gaia"){let sort=MY_FL.sort||"recommend";let area=MY_FL.area||"全部";let path="/movie/"+MY_CATE;res=miniapp_request(path,{area:area,sort:sort,start:(MY_PAGE-1)*count,count:count})}else if(MY_CATE==="tv_hot"||MY_CATE==="show_hot"){let stype=MY_FL.type||MY_CATE;let path="/subject_collection/"+stype+"/items";res=miniapp_request(path,{start:(MY_PAGE-1)*count,count:count})}else if(MY_CATE.startsWith("rank_list")){let id=MY_CATE==="rank_list_movie"?"movie_real_time_hotest":"tv_real_time_hotest";id=MY_FL.榜单||id;let path="/subject_collection/"+id+"/items";res=miniapp_request(path,{start:(MY_PAGE-1)*count,count:count})}else{let path="/"+MY_CATE+"/recommend";let selected_categories;let tags;let sort;if(Object.keys(MY_FL).length>0){sort=MY_FL.sort||"T";tags=Object.values(MY_FL).join(",");if(MY_CATE==="movie"){selected_categories={"类型":MY_FL.类型||"","地区":MY_FL.地区||""}}else{selected_categories={"类型":MY_FL.类型||"","形式":MY_FL.类型?MY_FL.类型+"地区":"","地区":MY_FL.地区||""}}}else{sort="T";tags="";if(MY_CATE==="movie"){selected_categories={"类型":"","地区":""}}else{selected_categories={"类型":"","形式":"","地区":""}}}let params={tags:tags,sort:sort,refresh:0,selected_categories:stringify(selected_categories),start:(MY_PAGE-1)*count,count:count};res=miniapp_request(path,params)}let result={page:MY_PAGE,pagecount:Math.ceil(res.total/count),limit:count,total:res.total};let items=[];if(/^rank_list|tv_hot|show_hot/.test(MY_CATE)){items=res["subject_collection_items"]}else if(MY_CATE==="interests"){res["interests"].forEach(function(it){items.push(it.subject)})}else{items=res.items}let lists=[];items.forEach(function(item){if(item.type==="movie"||item.type==="tv"){let rating=item.rating?item.rating.value:"";let rat_str=rating||"暂无评分";let title=item.title;let honor=item.honor_infos||[];let honor_str=honor.map(function(it){return it.title}).join("|");let vod_obj={vod_name:title!=="未知电影"?title:"暂不支持展示",vod_pic:item.pic.normal,vod_remarks:rat_str+" "+honor_str};let vod_obj_d={url:item.type+"$"+item.id,title:title!=="未知电影"?title:"暂不支持展示",pic_url:item.pic.normal,desc:rat_str+" "+honor_str};lists.push(vod_obj);d.push(vod_obj_d)}});result.list=lists;return result}catch(e){print(e.message)}return{}}let res=cate_filter(d);setResult2(res);',
|
||||
一级:'js:let d=[];let douban=input.split("douban=")[1].split("&")[0];let douban_api_host="http://api.douban.com/api/v2";let miniapp_apikey="0ac44ae016490db2204ce0a042db2916";const count=30;function miniapp_request(path,query){try{let url=douban_api_host+path;query.apikey=miniapp_apikey;fetch_params.headers=oheaders;url=buildUrl(url,query);let html=fetch(url,fetch_params);if(/request_error/.test(html)){print(html)}return JSON.parse(html)}catch(e){print("发生了错误:"+e.message);return{}}}function cate_filter(d,douban){douban=douban||"";try{let res={};if(MY_CATE==="interests"){if(douban){let status=MY_FL.status||"mark";let subtype_tag=MY_FL.subtype_tag||"";let year_tag=MY_FL.year_tag||"全部";let path="/user/"+douban+"/interests";res=miniapp_request(path,{type:"movie",status:status,subtype_tag:subtype_tag,year_tag:year_tag,start:(MY_PAGE-1)*count,count:count})}else{return{}}}else if(MY_CATE==="hot_gaia"){let sort=MY_FL.sort||"recommend";let area=MY_FL.area||"全部";let path="/movie/"+MY_CATE;res=miniapp_request(path,{area:area,sort:sort,start:(MY_PAGE-1)*count,count:count})}else if(MY_CATE==="tv_hot"||MY_CATE==="show_hot"){let stype=MY_FL.type||MY_CATE;let path="/subject_collection/"+stype+"/items";res=miniapp_request(path,{start:(MY_PAGE-1)*count,count:count})}else if(MY_CATE.startsWith("rank_list")){let id=MY_CATE==="rank_list_movie"?"movie_real_time_hotest":"tv_real_time_hotest";id=MY_FL.榜单||id;let path="/subject_collection/"+id+"/items";res=miniapp_request(path,{start:(MY_PAGE-1)*count,count:count})}else{let path="/"+MY_CATE+"/recommend";let selected_categories;let tags;let sort;if(Object.keys(MY_FL).length>0){sort=MY_FL.sort||"T";tags=Object.values(MY_FL).join(",");if(MY_CATE==="movie"){selected_categories={"类型":MY_FL.类型||"","地区":MY_FL.地区||""}}else{selected_categories={"类型":MY_FL.类型||"","形式":MY_FL.类型?MY_FL.类型+"地区":"","地区":MY_FL.地区||""}}}else{sort="T";tags="";if(MY_CATE==="movie"){selected_categories={"类型":"","地区":""}}else{selected_categories={"类型":"","形式":"","地区":""}}}let params={tags:tags,sort:sort,refresh:0,selected_categories:stringify(selected_categories),start:(MY_PAGE-1)*count,count:count};res=miniapp_request(path,params)}let result={page:MY_PAGE,pagecount:Math.ceil(res.total/count),limit:count,total:res.total};let items=[];if(/^rank_list|tv_hot|show_hot/.test(MY_CATE)){items=res["subject_collection_items"]}else if(MY_CATE==="interests"){res["interests"].forEach(function(it){items.push(it.subject)})}else{items=res.items}let lists=[];items.forEach(function(item){if(item.type==="movie"||item.type==="tv"){let rating=item.rating?item.rating.value:"";let rat_str=rating||"暂无评分";let title=item.title;let honor=item.honor_infos||[];let honor_str=honor.map(function(it){return it.title}).join("|");let vod_obj={vod_name:title!=="未知电影"?title:"暂不支持展示",vod_pic:item.pic.normal,vod_remarks:rat_str+" "+honor_str};let vod_obj_d={url:item.type+"$"+item.id,title:title!=="未知电影"?title:"暂不支持展示",pic_url:item.pic.normal,desc:rat_str+" "+honor_str};lists.push(vod_obj);d.push(vod_obj_d)}});result.list=lists;return result}catch(e){print(e.message)}return{}}let res=cate_filter(d,douban);setResult2(res);',
|
||||
二级:'',
|
||||
搜索:'',
|
||||
}
|
|
@ -1,6 +1,8 @@
|
|||
var rule={
|
||||
title:'厂长资源',
|
||||
host:'https://www.czspp.com',
|
||||
host:'https://www.czzy.tv',
|
||||
//host:'https://www.c-zzy.com',
|
||||
//host:'WWW.CZZY.TV',
|
||||
url:'/fyclass/page/fypage',
|
||||
searchUrl:'/xssearch?q=**&f=_all&p=fypage',
|
||||
searchable:2,//是否启用全局搜索,
|
||||
|
|
41
js/爱看影视.js
41
js/爱看影视.js
|
@ -1,16 +1,25 @@
|
|||
var rule={
|
||||
title:'爱看影视',
|
||||
host:'https://ikan6.vip',
|
||||
url:'/vodtype/fyclass-fypage/ ',
|
||||
searchUrl:'/vodsearch/-------------/?wd=**&submit=',
|
||||
searchable:2,
|
||||
quickSearch:1,
|
||||
filterable:0,
|
||||
headers:{'User-Agent':'MOBILE_UA', },
|
||||
class_name:'电影&电视剧&综艺&动漫&日韩剧&美剧',
|
||||
class_url:'1&2&3&4&15&16',
|
||||
推荐:'.myui-vodlist__box;*;*;*;*',
|
||||
一级:'.myui-vodlist__box;a&&title;.lazyload&&data-original;.pic-text&&Text;a&&href',
|
||||
二级:{"title":"h1&&Text;.myui-content__detail p:eq(1)&&Text","img":".lazyload&&data-original","desc":";;;.myui-content__detail p:eq(3)&&Text;.myui-content__detail p:eq(4)&&Text","content":".sketch.content&&Text","tabs":'.nav.nav-tabs.active',"lists":".myui-content__list:eq(#id) a"},
|
||||
搜索:'.myui-vodlist__media.clearfix li;a&&title;.lazyload&&data-original;.text-right&&Text;a&&href',
|
||||
}
|
||||
var rule={
|
||||
title:'爱看影视',
|
||||
host:'https://ikan6.vip',
|
||||
url:'/vodtype/fyclass-fypage/',
|
||||
searchUrl:'/vodsearch/**----------fypage---/',
|
||||
class_name:'电影&电视剧&综艺&动漫&日韩剧&美剧&港台剧',
|
||||
class_url:'1&2&3&4&15&16&14',
|
||||
searchable:2,//是否启用全局搜索,
|
||||
quickSearch:0,//是否启用快速搜索,
|
||||
filterable:0,//是否启用分类筛选,
|
||||
headers:{
|
||||
'User-Agent':'UC_UA',
|
||||
},
|
||||
// class_parse:'.fed-pops-navbar&&ul.fed-part-rows&&a.fed-part-eone:gt(0):lt(5);a&&Text;a&&href;.*/(.*?).html',
|
||||
//class_parse:'.myui-header__menu&&li:gt(0):lt(6);a&&Text;a&&href;.*/(.*?).html',
|
||||
//cate_exclude: '专题',
|
||||
play_parse:true,
|
||||
lazy:'',
|
||||
limit:6,
|
||||
推荐:'ul.myui-vodlist.clearfix;li;a&&title;.lazyload&&data-original;.pic-text&&Text;a&&href',
|
||||
double:true, // 推荐内容是否双层定位
|
||||
一级:'.myui-vodlist li;a&&title;.lazyload&&data-original;.pic-text&&Text;a&&href',
|
||||
二级:{"title":".myui-content__detail .title&&Text;.t-muted:eq(-1)&&Text","img":".lazyload&&data-original","desc":";;.myui-content__detail p:eq(2)&&Text;.myui-content__detail p:eq(3)&&Text;.myui-content__detail p:eq(4)&&Text","content":".content&&Text","tabs":".nav-tabs:eq(0) li","lists":".myui-content__list:eq(#id) li"},
|
||||
搜索:'.myui-vodlist__media li;a&&title;*;*;a&&href;.text-muted:eq(-1)&&Text',
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue