diff --git a/js/优酷.js b/js/优酷.js index dccdbd60..6540e411 100644 --- a/js/优酷.js +++ b/js/优酷.js @@ -36,4 +36,4 @@ var rule = { 二级:'js:var d=[];VOD={};let html=request(input);let json=JSON.parse(html);if(/keyword/.test(input)){input="https://search.youku.com/api/search?appScene=show_episode&showIds="+json.pageComponentList[0].commonData.showId;json=JSON.parse(fetch(MY_URL,fetch_params))}let video_lists=json.serisesList;var name=json.sourceName;if(/优酷/.test(name)&&video_lists.length>0){let ourl="https://v.youku.com/v_show/id_"+video_lists[0].videoId+".html";let _img=video_lists[0].thumbUrl;let html=fetch(ourl,{headers:{Referer:"https://v.youku.com/","User-Agent":PC_UA}});let json=/__INITIAL_DATA__/.test(html)?html.split("window.__INITIAL_DATA__ =")[1].split(";")[0]:"{}";if(json==="{}"){log("触发了优酷人机验证");VOD.vod_remarks=ourl;VOD.vod_pic=_img;VOD.vod_name=video_lists[0].title.replace(/(\\d+)/g,"");VOD.vod_content="触发了优酷人机验证,本次未获取详情,但不影响播放("+ourl+")"}else{try{json=JSON.parse(json);let data=json.data.data;let data_extra=data.data.extra;let img=data_extra.showImgV;let model=json.data.model;let m=model.detail.data.nodes[0].nodes[0].nodes[0].data;let _type=m.showGenre;let _desc=m.updateInfo||m.subtitle;let JJ=m.desc;let _title=m.introTitle;VOD.vod_pic=img;VOD.vod_name=_title;VOD.vod_type=_type;VOD.vod_remarks=_desc;VOD.vod_content=JJ}catch(e){log("海报渲染发生错误:"+e.message);print(json);VOD.vod_remarks=name}}}if(!/优酷/.test(name)){VOD.vod_content="非自家播放源,暂无视频简介及海报";VOD.vod_remarks=name}function adhead(url){return urlencode(url)}play_url=play_url.replace("&play_url=","&type=json&play_url=");video_lists.forEach(function(it){let url="https://v.youku.com/v_show/id_"+it.videoId+".html";if(it.thumbUrl){d.push({desc:it.showVideoStage?it.showVideoStage.replace("期","集"):it.displayName,pic_url:it.thumbUrl,title:it.title,url:play_url+adhead(url)})}else if(name!=="优酷"){d.push({title:it.displayName?it.displayName:it.title,url:play_url+adhead(it.url)})}});VOD.vod_play_from=name;VOD.vod_play_url=d.map(function(it){return it.title+"$"+it.url}).join("#");', 搜索:'', 搜索:'js:var d=[];let html=request(input);let json=JSON.parse(html);json.pageComponentList.forEach(function(it){if(it.hasOwnProperty("commonData")){it=it.commonData;d.push({title:it.titleDTO.displayName,img:it.posterDTO.vThumbUrl,desc:it.stripeBottom,content:it.updateNotice+" "+it.feature,url:"https://search.youku.com/api/search?appScene=show_episode&showIds="+it.showId+"&appCaller=h5"})}});setResult(d);', -} \ No newline at end of file +} diff --git a/js/天空影视.js b/js/天空影视.js index e000e8ee..d4ce7d93 100644 --- a/js/天空影视.js +++ b/js/天空影视.js @@ -1,9 +1,18 @@ -var rule = Object.assign(muban.首图,{ -title:'天空影视', -host:'https://www.tkys6.com', -url:'/vodshow/id/fyclass/page/fypage.html', -searchUrl:'/search/-------------.html?wd=*&submit=', -//class_name:'电视剧&电影&综艺&动漫&blbl',//静态分类名称拼接 -//class_url:'2&1&3&4&29',//静态分类标识拼接 -class_parse:'.myui-header__menu li.hidden-sm:gt(0):lt(8);a&&Text;a&&href;/(\\d+).html', -}); +var rule={ + title:'天空影视', + host:'https://www.tkys6.com', + url:'/vodshow/id/fyclass/page/fypage.html', + searchUrl:'/vodsearch/page/fypage/wd/**.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', +} diff --git a/js/看视界.js b/js/看视界.js index ce668a5e..a863c3a4 100644 --- a/js/看视界.js +++ b/js/看视界.js @@ -1,5 +1,18 @@ -var rule = Object.assign(muban.mxone5,{ -title:'看视界', -host:'https://www.1080kan.cc', -headers:{'User-Agent':'MOBILE_UA'}, -}); \ No newline at end of file +var rule={ + title:'看视界', + host:'https://www.1080kan.cc', + url:'/show/fyclass--------fypage---.html', + searchUrl:'/search/**----------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&20', + 推荐:'.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;.video-info-aux&&div&&a:eq(0)&&Text","img":".module-item-pic&&img&&data-src","desc":";.video-info-aux&&a:eq(1)&&Text;.video-info-aux&&a:eq(2)&&Text;.video-info-items:eq(1) a&&Text;.video-info-items:eq(0) a&&Text","content":".video-info-content&&Text","tabs":".module-tab-item.tab-item","lists":".module-player-list:eq(#id)&&.scroll-content&&a"}, + 搜索:'.module-items .module-search-item;a&&title;img&&data-src;.video-serial&&Text;a&&href', +} diff --git a/js/石榴影院.js b/js/石榴影院.js index cb87df1a..29c4af6f 100644 --- a/js/石榴影院.js +++ b/js/石榴影院.js @@ -1,6 +1,7 @@ var rule={ title:'石榴影院', - host:'https://hei19.com', + //host:'https://hei19.com', + host:'https://hei17.com', // homeUrl:'/', url:'/catalog?column=fyclass&sort=1&per_page=72&page=fypage', searchUrl:'/search?type=1&keywords=**&page=fypage', diff --git a/js/莫扎兔.js b/js/莫扎兔.js index ec09afb9..39d95dcc 100644 --- a/js/莫扎兔.js +++ b/js/莫扎兔.js @@ -1,6 +1,7 @@ var rule = Object.assign(muban.mxpro,{ title:'莫扎兔', host:'https://www.mozhatu.com', +tab_exclude:'排序', url:'/index.php/vod/show/id/fyclass/page/fypage.html', searchUrl:'/index.php/vod/search/page/fypage/wd/**.html', class_parse:'.navbar-items li:gt(2):lt(8);a&&Text;a&&href;.*/(.*?).html',