mirror of
https://github.com/qist/tvbox.git
synced 2025-10-26 17:52:20 +00:00
Add files via upload
This commit is contained in:
25
js/AGE动漫.js
Normal file
25
js/AGE动漫.js
Normal file
File diff suppressed because one or more lines are too long
25
js/ddys.js
Normal file
25
js/ddys.js
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
var rule={
|
||||||
|
title:'ddys',
|
||||||
|
host:'https://ddys.tv',
|
||||||
|
// homeUrl:'/',
|
||||||
|
url:'https://ddys.tv/category/fyclass/page/fypage/',
|
||||||
|
searchUrl:'/search.html?wd=**',
|
||||||
|
searchable:2,//是否启用全局搜索,
|
||||||
|
quickSearch:0,//是否启用快速搜索,
|
||||||
|
filterable:0,//是否启用分类筛选,
|
||||||
|
headers:{//网站的请求头,完整支持所有的,常带ua和cookies
|
||||||
|
'User-Agent':'MOBILE_UA',
|
||||||
|
// "Cookie": "searchneed=ok"
|
||||||
|
},
|
||||||
|
class_name:'电影&剧集&动画',
|
||||||
|
class_url:'movie&airing&anime',
|
||||||
|
cate_exclude:'解析|动态',
|
||||||
|
play_parse:true,
|
||||||
|
lazy:'',
|
||||||
|
limit:6,
|
||||||
|
//推荐:'.indexShowBox;ul&&li;a&&title;img&&data-src;.s1&&Text;a&&href',
|
||||||
|
double:true, // 推荐内容是否双层定位
|
||||||
|
一级:'.post-box-list&&article;a:eq(-1)&&Text;.post-box-image&&style;a:eq(0)&&Text;a:eq(-1)&&href',
|
||||||
|
二级:{"title":"h1&&Text;.content-rt&&p:eq(0)&&Text","img":".img&&img&&data-src","desc":".content-rt&&p:eq(1)&&Text;.content-rt&&p:eq(2)&&Text;.content-rt&&p:eq(3)&&Text;.content-rt&&p:eq(4)&&Text;.content-rt&&p:eq(5)&&Text","content":".zkjj_a&&Text","tabs":".py-tabs&&option","lists":".player:eq(#id) li"},
|
||||||
|
搜索:'.sr_lists&&ul&&li;h3&&Text;img&&data-src;.int&&p:eq(0)&&Text;a&&href',
|
||||||
|
}
|
||||||
6
js/凌云.js
Normal file
6
js/凌云.js
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
var rule = Object.assign(muban.短视,{
|
||||||
|
title:'凌云影视',
|
||||||
|
host:'https://www.lingyun.in',
|
||||||
|
url:'/channel/fyclass-fypage.html',
|
||||||
|
searchUrl:'/search.html?wd=**',
|
||||||
|
});
|
||||||
21
js/凌云影视.js
21
js/凌云影视.js
@@ -1,21 +1,4 @@
|
|||||||
var rule={
|
var rule = Object.assign(muban.短视,{
|
||||||
title:'凌云影视',
|
title:'凌云影视',
|
||||||
host:'https://www.lingyun.in',
|
host:'https://www.lingyun.in',
|
||||||
// searchUrl:'/v_search/**----------fypage---.html',
|
});
|
||||||
url:'/play/fyclass-fypage.html',
|
|
||||||
headers:{
|
|
||||||
'User-Agent':'MOBILE_UA'
|
|
||||||
},
|
|
||||||
timeout:5000,
|
|
||||||
class_parse:'.over-auto li;a&&Text;a&&href;.*/(.*?).html',
|
|
||||||
cate_exclude:'解析',
|
|
||||||
limit:40,
|
|
||||||
play_parse:true,
|
|
||||||
lazy:'',
|
|
||||||
推荐:'ul.pic-list.pic-list-nth;li;a&&title;img&&data-src;.s1&&Text;a&&href',
|
|
||||||
double:true,
|
|
||||||
一级:'ul.pic-list.clearfix&&li;a&&title;img&&data-src;.s1&&Text;a&&href',
|
|
||||||
二级:{"title":".content-rt&&h1&&Text;.content-rt&&p:eq(0)&&Text","img":".img&&img&&data-src","desc":".content-rt&&p:eq(2)&&Text;.content-rt&&p:eq(3)&&Text","content":".movie-introduce&&.sqjj_a&&Text","tabs":".py-tabs&&option","lists":"ul.player:eq(#id)&&li"},
|
|
||||||
// 搜索:'.hl-list-item;a&&title;a&&data-original;.remarks&&Text;a&&href',
|
|
||||||
searchable:1,//是否启用全局搜索,
|
|
||||||
};
|
|
||||||
@@ -28,7 +28,7 @@ var rule = {
|
|||||||
// 一级:'json:data.hitDocs;title;img;updateInfo;playPartId',
|
// 一级:'json:data.hitDocs;title;img;updateInfo;playPartId',
|
||||||
二级:'',
|
二级:'',
|
||||||
二级:'js:log(input);',
|
二级:'js:log(input);',
|
||||||
二级:'js:fetch_params.headers.Referer="https://www.mgtv.com";fetch_params.headers["User-Agent"]=UA;pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;VOD={};let d=[];let html=request(input);let json=JSON.parse(html);let host="https://www.mgtv.com";let ourl=json.data.list.length>0?json.data.list[0].url:json.data.series[0].url;if(!/^http/.test(ourl)){ourl=host+ourl}fetch_params.headers["User-Agent"]=MOBILE_UA;html=request(ourl);if(html.includes("window.location =")){print("开始获取ourl");ourl=pdfh(html,"meta[http-equiv=refresh]&&content").split("url=")[1];print("获取到ourl:"+ourl);html=request(ourl)}try{let details=pdfh(html,".m-details&&Html").replace(/h1>/,"h6>").replace(/div/g,"br");let actor="",director="",time="";if(/播出时间/.test(details)){actor=pdfh(html,"p:eq(5)&&Text").substr(0,25);director=pdfh(html,"p:eq(4)&&Text");time=pdfh(html,"p:eq(3)&&Text")}else{actor=pdfh(html,"p:eq(4)&&Text").substr(0,25);director=pdfh(html,"p:eq(3)&&Text");time="已完结"}let _img=pd(html,".video-img&&img&&src");let JJ=pdfh(html,".desc&&Text").split("简介:")[1];let _desc=time;VOD.vod_name=pdfh(html,".vt-txt&&Text");VOD.type_name=pdfh(html,"p:eq(0)&&Text").substr(0,6);VOD.vod_area=pdfh(html,"p:eq(1)&&Text");VOD.vod_actor=actor;VOD.vod_director=director;VOD.vod_remarks=_desc;VOD.vod_pic=_img;VOD.vod_content=JJ}catch(e){log("获取影片信息发生错误:"+e.message)}function getRjpg(imgUrl,xs){xs=xs||3;let picSize=/jpg_/.test(imgUrl)?imgUrl.split("jpg_")[1].split(".")[0]:false;let rjpg=false;if(picSize){let a=parseInt(picSize.split("x")[0])*xs;let b=parseInt(picSize.split("x")[1])*xs;rjpg=a+"x"+b+".jpg"}let img=/jpg_/.test(imgUrl)&&rjpg?imgUrl.replace(imgUrl.split("jpg_")[1],rjpg):imgUrl;return img}if(json.data.total===1&&json.data.list.length===1){let data=json.data.list[0];let url="https://www.mgtv.com"+data.url;d.push({title:data.t4,desc:data.t2,pic_url:getRjpg(data.img),url:url})}else if(json.data.list.length>1){for(let i=1;i<=json.data.total_page;i++){if(i>1){json=JSON.parse(fetch(input.replace("page=1","page="+i),{}))}json.data.list.forEach(function(data){let url="https://www.mgtv.com"+data.url;if(data.isIntact=="1"){d.push({title:data.t4,desc:data.t2,pic_url:getRjpg(data.img),url:url})}})}}else{print(input+"暂无片源")}VOD.vod_play_from="mgtv";VOD.vod_play_url=d.map(function(it){return it.title+"$"+it.url}).join("#");setResult(d);',
|
二级:'js:fetch_params.headers.Referer="https://www.mgtv.com";fetch_params.headers["User-Agent"]=UA;pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;VOD={};let d=[];let html=request(input);let json=JSON.parse(html);let host="https://www.mgtv.com";let ourl=json.data.list.length>0?json.data.list[0].url:json.data.series[0].url;if(!/^http/.test(ourl)){ourl=host+ourl}fetch_params.headers["User-Agent"]=MOBILE_UA;html=request(ourl);if(html.includes("window.location =")){print("开始获取ourl");ourl=pdfh(html,"meta[http-equiv=refresh]&&content").split("url=")[1];print("获取到ourl:"+ourl);html=request(ourl)}try{let details=pdfh(html,".m-details&&Html").replace(/h1>/,"h6>").replace(/div/g,"br");print(details);let actor="",director="",time="";if(/播出时间/.test(details)){actor=pdfh(html,"p:eq(5)&&Text").substr(0,25);director=pdfh(html,"p:eq(4)&&Text");time=pdfh(html,"p:eq(3)&&Text")}else{actor=pdfh(html,"p:eq(4)&&Text").substr(0,25);director=pdfh(html,"p:eq(3)&&Text");time="已完结"}let _img=pd(html,".video-img&&img&&src");let JJ=pdfh(html,".desc&&Text").split("简介:")[1];let _desc=time;VOD.vod_name=pdfh(html,".vt-txt&&Text");VOD.type_name=pdfh(html,"p:eq(0)&&Text").substr(0,6);VOD.vod_area=pdfh(html,"p:eq(1)&&Text");VOD.vod_actor=actor;VOD.vod_director=director;VOD.vod_remarks=_desc;VOD.vod_pic=_img;VOD.vod_content=JJ}catch(e){log("获取影片信息发生错误:"+e.message)}function getRjpg(imgUrl,xs){xs=xs||3;let picSize=/jpg_/.test(imgUrl)?imgUrl.split("jpg_")[1].split(".")[0]:false;let rjpg=false;if(picSize){let a=parseInt(picSize.split("x")[0])*xs;let b=parseInt(picSize.split("x")[1])*xs;rjpg=a+"x"+b+".jpg"}let img=/jpg_/.test(imgUrl)&&rjpg?imgUrl.replace(imgUrl.split("jpg_")[1],rjpg):imgUrl;return img}if(json.data.total===1&&json.data.list.length===1){let data=json.data.list[0];let url="https://www.mgtv.com"+data.url;d.push({title:data.t4,desc:data.t2,pic_url:getRjpg(data.img),url:url})}else if(json.data.list.length>1){for(let i=1;i<=json.data.total_page;i++){if(i>1){json=JSON.parse(fetch(input.replace("page=1","page="+i),{}))}json.data.list.forEach(function(data){let url="https://www.mgtv.com"+data.url;if(data.isIntact=="1"){d.push({title:data.t4,desc:data.t2,pic_url:getRjpg(data.img),url:url})}})}}else{print(input+"暂无片源")}VOD.vod_play_from="mgtv";VOD.vod_play_url=d.map(function(it){return it.title+"$"+it.url}).join("#");setResult(d);',
|
||||||
搜索:'',
|
搜索:'',
|
||||||
搜索:'js:fetch_params.headers.Referer="https://www.mgtv.com";fetch_params.headers["User-Agent"]=UA;let d=[];let html=request(input);let json=JSON.parse(html);json.data.contents.forEach(function(data){if(data.data.sourceList||data.data.yearList){let list=data.data.sourceList?data.data.sourceList:data.data.yearList[0].sourceList;let desc="";list.forEach(function(it){desc+=it.name+"\\t"});if(list[0].source==="imgo"){let img=data.data.pic?data.data.pic:data.data.yearList[0].pic;d.push({title:data.data.title?data.data.title:data.data.yearList[0].title,img:img,content:data.data.story?data.data.story:data.data.yearList[0].story,desc:data.data.playTime,url:list[0].vid})}}});setResult(d);',
|
搜索:'js:fetch_params.headers.Referer="https://www.mgtv.com";fetch_params.headers["User-Agent"]=UA;let d=[];let html=request(input);let json=JSON.parse(html);json.data.contents.forEach(function(data){if(data.data.sourceList||data.data.yearList){let list=data.data.sourceList?data.data.sourceList:data.data.yearList[0].sourceList;let desc="";list.forEach(function(it){desc+=it.name+"\\t"});if(list[0].source==="imgo"){let img=data.data.pic?data.data.pic:data.data.yearList[0].pic;d.push({title:data.data.title?data.data.title:data.data.yearList[0].title,img:img,content:data.data.story?data.data.story:data.data.yearList[0].story,desc:data.data.playTime,url:list[0].vid})}}});setResult(d);',
|
||||||
}
|
}
|
||||||
10
js/秋霞.js
Normal file
10
js/秋霞.js
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
muban.首图2.二级.tabs = '.stui-pannel__head.bottom-line.active.clearfix h3';
|
||||||
|
muban.首图2.二级.content = '.stui-content__desc&&Text';
|
||||||
|
var rule = Object.assign(muban.首图2,{
|
||||||
|
title:'秋霞',
|
||||||
|
host:'https://www.7xiady.cc',
|
||||||
|
url:'/type/fyclass-fypage/',
|
||||||
|
class_parse:'.stui-header__menu li;a&&Text;a&&href;/type/(.*?)/',
|
||||||
|
searchUrl:'/search/**----------fypage---.html',
|
||||||
|
搜索:'ul.stui-vodlist&&li;a&&title;.lazyload&&data-original;.pic-text&&Text;a&&href',
|
||||||
|
});
|
||||||
26
js/麦豆com.js
Normal file
26
js/麦豆com.js
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
var rule = {
|
||||||
|
title:'麦豆com',
|
||||||
|
host:'https://www.mdoutv.com',
|
||||||
|
// homeUrl:'/',
|
||||||
|
url:'/movie_bt_series/fyclass/page/fypage',
|
||||||
|
searchUrl:'/search/**/page/fypage',
|
||||||
|
searchable:2,//是否启用全局搜索,
|
||||||
|
quickSearch:0,//是否启用快速搜索,
|
||||||
|
filterable:0,//是否启用分类筛选,
|
||||||
|
headers:{//网站的请求头,完整支持所有的,常带ua和cookies
|
||||||
|
'User-Agent':'MOBILE_UA',
|
||||||
|
// "Cookie": "searchneed=ok"
|
||||||
|
},
|
||||||
|
class_parse:'.submenu_mi&&li;a&&Text;a&&href;.*/(.*)',
|
||||||
|
//class_name:'国产&港台&欧美&韩剧&日剧&泰剧&剧集&电影&动漫&综艺',
|
||||||
|
//class_url:'guocanju&gangtai&en&hanju&riju&taiju&tv&movie&ac&zongyi',
|
||||||
|
cate_exclude:'留言|幸运码|更多播放线路|蚂蚁导航|迷历史',
|
||||||
|
play_parse:true,
|
||||||
|
lazy:'',
|
||||||
|
limit:6,
|
||||||
|
推荐:'body&&.mi_btcon;ul&&li;img&&alt;img&&data-original;.jidi&&Text;a&&href',
|
||||||
|
double:true, // 推荐内容是否双层定位
|
||||||
|
一级:'.mrb&&ul&&li;img&&alt;img&&data-original;.jidi&&Text;a&&href',
|
||||||
|
二级:{"title":"h1&&Text;.moviedteail_list&&li:eq(2)&&Text;","img":".dyxingq&&img&&src","desc":".moviedteail_list&&li:eq(3)&&Text;.moviedteail_list&&li:eq(4)&&Text","content":".yp_context&&Text","tabs":".fr&&a","lists":".paly_list_btn:eq(#id) a"},
|
||||||
|
搜索:'.search_list&&ul&&li;h3&&Text;img&&data-original;.hdinfo&&span&&Text;a&&href',
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user