diff --git a/天微VIP线/lib/六月听书.js b/天微VIP线/lib/六月听书.js new file mode 100644 index 0000000..ba4dbe2 --- /dev/null +++ b/天微VIP线/lib/六月听书.js @@ -0,0 +1,27 @@ +var rule = { + title: '六月听书', + host: 'http://m.6yueting.com', + url: '/ys/fyclass/o2/pfypage', + searchUrl: '/search/index/search?content=**&type=1&pageNum=fypage&pageSize=40', + searchable: 2, + quickSearch: 0, + filterable:0,//是否启用分类筛选, + headers:{'User-Agent':'MOBILE_UA'}, + class_name:'全部分类&玄幻奇幻&修真武侠&恐怖灵异&古今言情&都市言情&穿越重生&粤语古仔&网游小说&通俗文学&历史纪实&军事&悬疑推理&ebc5系列&官场商战&儿童读物&广播剧&外文原版&评书大全&相声小品&百家讲坛&健康养生&教材&期刊头条&戏曲&脱口秀', + class_url:'t0&t1&t2&t3&t4&t28&t5&t6&t7&t11&t12&t13&t14&t18&t15&t16&t17&t22&t8&t9&t10&t20&t21&t23&t24&t27', + play_parse:true, + lazy:'', + limit:6, + 图片来源:'@Referer=http://m.6yueting.com/@User-Agent=MOBILE_UA', + 推荐:'*', + 一级: '.list-wrapper&&.item-link;h2--span&&Text;img&&src;.status&&Text;a&&href', + 二级:{ + "title":".book-title&&Text;.text:eq(0)&&Text", + "img":".img&&src", + "desc":".text:eq(3)&&Text;;;.text:eq(1)&&Text;.text:eq(2)&&Text", + "content":".book-intro&&Text", + "tabs":".operate-bar&&.total-num", + "lists":".book-list:eq(#id)&&.list-item" + }, + 搜索:'js:let d=[];let MY_HOME="http://m.6yueting.com";let html=request(input);html=JSON.parse(html);let list=html.data.content;list.forEach(function(it){d.push({title:it.name.replace(/<.*?>/g,""),img:"http://img.6yueting.com:20001/"+it.coverUrlLocal,url:MY_HOME+"/list/"+it.code,desc:it.cdate,content:it.descXx.replace(/ /g,"")})});setResult(d);', +} \ No newline at end of file diff --git a/天微VIP线/lib/美柏.json b/天微VIP线/lib/美柏.json new file mode 100644 index 0000000..89573f9 --- /dev/null +++ b/天微VIP线/lib/美柏.json @@ -0,0 +1,26 @@ +{ + "请求头": "手机", + "主页url": "https://www.mp4br.com", + "数组": "", + "标题": "", + "副标题": "

&&", + "图片": "img src=\"&&\"", + "简介": "div class=\"tjuqing\">&&", + "线路数组": "

&&

", + "线路标题": "开心软件+&&", + "播放数组": "class=\"video_list fn-clear\">&&", + "播放列表": "&&", + "分类标题": ">&&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);', +} \ No newline at end of file diff --git a/天微VIP线/lib/蓝莓短剧.js b/天微VIP线/lib/蓝莓短剧.js new file mode 100644 index 0000000..8ded7dc --- /dev/null +++ b/天微VIP线/lib/蓝莓短剧.js @@ -0,0 +1,111 @@ +  +var rule = { + title: '蓝莓短剧', + host: 'https://app.whjzjx.cn', + url: '/v1/theater/home_page?theater_class_id=1&class2_id=fyclass&page_num=fypage&page_size=24', + searchUrl: '/?**', + searchable: 2, + quickSearch: 1, + // filterable: 1, + class_name: '古装&穿越&逆袭&重生', + class_url: '5&17&7&6', + 一级: $js.toString(() => { + let d = []; + let urlk = `https://app.whjzjx.cn/v1/theater/home_page?theater_class_id=${MY_CATE}&page_num=${MY_PAGE - 1}&page_size=24`; + let tkurl = 'https://app.whjzjx.cn/v1/account/login'; + let head = JSON.parse(post(tkurl, { + headers: { + "Connection": "keep-alive", + "Content-Type": "application/x-www-form-urlencoded", + "Content-Length": "40", + "user-agent": "okhttp/4.10.0", + "user_agent": "Mozilla/5.0 (Linux; Android 9; ASUS_I003DD Build/PI; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/68.0.3440.70 Mobile Safari/537.36", + "Host": "app.whjzjx.cn", + "Accept-Encoding": "gzip" + }, + body: "device=20caaae96b3443174bf4ebdbdcc253776" + })).data.token; + let header={"authorization":head}; + let html = JSON.parse(request(urlk, { + headers: header + })); + let bata = html.data.list; + bata.forEach(it => { + let id = 'https://app.whjzjx.cn/v2/theater_parent/detail?theater_parent_id=' + it.theater.id; + d.push({ + url: id, + title: it.theater.title, + img: it.theater.cover_url, + desc: it.theater.total + "集", + content: "播放量:" + it.theater.play_amount_str, + }); + }); + setResult(d); + }), + 二级: $js.toString(() => { + let urls = []; + let tkurl = 'https://app.whjzjx.cn/v1/account/login'; + let head = JSON.parse(post(tkurl, { + headers: { + "Connection": "keep-alive", + "Content-Type": "application/x-www-form-urlencoded", + "Content-Length": "40", + "user-agent": "okhttp/4.10.0", + "user_agent": "Mozilla/5.0 (Linux; Android 9; ASUS_I003DD Build/PI; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/68.0.3440.70 Mobile Safari/537.36", + "Host": "app.whjzjx.cn", + "Accept-Encoding": "gzip" + }, + body: "device=20caaae96b3443174bf4ebdbdcc253776" + })).data.token; + let header={"authorization":head}; + let data = JSON.parse(request(input, { + headers: header + })).data; + //console.log(data); + data.theaters.forEach(it => { + urls.push("第" + it.num + "集" + '$' + it.son_video_url); + }); + VOD = { + vod_name: data.title, + vod_pic: data.cover_url, + vod_remarks: data.total + "集", + vod_play_from: 'XT短剧', + vod_play_url: urls.join('#') + }; + }), + 搜索: $js.toString(() => { + let d = []; + let ht = input.match(/\?(.*)/)[1]; + let ser = "https://app.whjzjx.cn/v2/search"; + let tkurl = 'https://app.whjzjx.cn/v1/account/login'; + let head = JSON.parse(post(tkurl, { + headers: { + "Connection": "keep-alive", + "Content-Type": "application/x-www-form-urlencoded", + "Content-Length": "40", + "user-agent": "okhttp/4.10.0", + "user_agent": "Mozilla/5.0 (Linux; Android 9; ASUS_I003DD Build/PI; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/68.0.3440.70 Mobile Safari/537.36", + "Host": "app.whjzjx.cn", + "Accept-Encoding": "gzip" + }, + body: "device=20caaae96b3443174bf4ebdbdcc253776" + })).data.token; + let header={"authorization":head}; + let html = JSON.parse(post(ser, { + headers: header, + body: "text=" + ht + })); + let bata = html.data.search_data; + bata.forEach(it => { + let id = 'https://app.whjzjx.cn/v2/theater_parent/detail?theater_parent_id=' + it.id; + d.push({ + url: id, + title: it.title, + img: it.cover_url, + desc: it.score_str + "|" + it.total + "集", + }); + }); + setResult(d); + }), +}; +  \ No newline at end of file