From 613433e88a035319d036aaba6c2b63e4328f5fbb Mon Sep 17 00:00:00 2001 From: n3rddd <119649988+n3rddd@users.noreply.github.com> Date: Mon, 30 Oct 2023 00:08:14 +0800 Subject: [PATCH] Add files via upload --- JN/EXT/JS/Auete.js | 80 +++++++++------ JN/EXT/JS/独播库[飞].js | 136 +++++++++++++++++++++++-- JN/EXT/JS/荐片.js | 221 +++++++++++++++++++++++++--------------- 3 files changed, 316 insertions(+), 121 deletions(-) diff --git a/JN/EXT/JS/Auete.js b/JN/EXT/JS/Auete.js index 4d003fad..88fb78dd 100644 --- a/JN/EXT/JS/Auete.js +++ b/JN/EXT/JS/Auete.js @@ -1,32 +1,50 @@ +/** + * 搜索 > 图片加法验证 + * 网址导航 https://auete.site + */ + var rule = { - title:'Auete', - host:'https://auete.com', - // url:'/fyclassfyfilter/indexfypage.html[/fyclassfyfilter/index.html]', - url:'/fyclassfyfilter/indexfypage.html[/fyclassfyfilter/index.html]', - filterable:1,//是否启用分类筛选, - filter_url:'{{fl.class}}', - filter: {"Movie":[{"key":"class","name":"剧情","value":[{"n":"全部","v":""},{"n":"喜剧片","v":"/xjp"},{"n":"动作片","v":"/dzp"},{"n":"爱情片","v":"/aqp"},{"n":"科幻片","v":"/khp"},{"n":"恐怖片","v":"/kbp"},{"n":"惊悚片","v":"/jsp"},{"n":"战争片","v":"/zzp"},{"n":"剧情片","v":"/jqp"}]}],"Tv":[{"key":"class","name":"剧情","value":[{"n":"全部","v":""},{"n":"美剧","v":"/oumei"},{"n":"韩剧","v":"/hanju"},{"n":"日剧","v":"/riju"},{"n":"泰剧","v":"/yataiju"},{"n":"网剧","v":"/wangju"},{"n":"台剧","v":"/taiju"},{"n":"国产","v":"/neidi"},{"n":"港剧","v":"/tvbgj"},{"n":"英剧","v":"/yingju"}]}],"Zy":[{"key":"class","name":"剧情","value":[{"n":"全部","v":""},{"n":"国综","v":"/guozong"},{"n":"韩综","v":"/hanzong"},{"n":"美综","v":"/meizong"}]}],"Dm":[{"key":"class","name":"剧情","value":[{"n":"全部","v":""},{"n":"动画","v":"/donghua"},{"n":"日漫","v":"/riman"},{"n":"国漫","v":"/guoman"},{"n":"美漫","v":"/meiman"}]}],"qita":[{"key":"class","name":"剧情","value":[{"n":"全部","v":""},{"n":"记录片","v":"/Jlp"},{"n":"经典片","v":"/Jdp"},{"n":"经典剧","v":"/Jdj"},{"n":"网大电影","v":"/wlp"},{"n":"国产老电影","v":"/laodianying"}]}]}, - // searchUrl:'/search.php?searchword=**', - searchUrl:'/auete2so.php?searchword=**', - searchable:2,//是否启用全局搜索, - quickSearch:1,//是否启用快速搜索, - headers:{ - 'User-Agent':'PC_UA', - }, - class_parse:'.mr-auto li:gt(0):lt(6);a&&Text;a&&href;/(\\w+)/index.html', - play_parse:true, - lazy:'', - limit:6, - 推荐:'*', - 一级:'.threadlist .trans_3;.title&&Text;.lazy&&src;.hdtag&&Text;a&&href', - 二级:{ - "title":".cover a&&title;.message p:eq(7)&&Text", - "img":".cover img&&src", - "desc":".w-100&&Text;.message p:eq(10)&&Text;.message p:eq(9)&&Text;.message p:eq(6)&&Text;.message p:eq(4)&&Text", - "content":".message p:eq(-1)&&Text", - "tabs":"#player_list h2", - "tab_text":"h2--span&&Text", - "lists":"#player_list:eq(#id) li" - }, - 搜索:'.card-body .media;.text-danger&&Text;;.data&&Text;a&&href', -} + title: 'Auete', + // host:'https://haozhansou.com', + host: 'https://auete.site', + hostJs: 'print(HOST);let html=request(HOST,{headers:{"User-Agent":PC_UA}});let src = jsp.pdfh(html,"ul&&li&&a&&href");print(src);HOST=src',//网页域名根动态抓取js代码。通过HOST=赋值 + // url:'/fyclassfyfilter/indexfypage.html[/fyclassfyfilter/index.html]', + url: '/fyclassfyfilter/indexfypage.html[/fyclassfyfilter/index.html]', + filterable: 1, + filter_url: '{{fl.class}}', + filter: { + "Movie":[{"key":"class","name":"剧情","value":[{"n":"全部","v":""},{"n":"喜剧片","v":"/xjp"},{"n":"动作片","v":"/dzp"},{"n":"爱情片","v":"/aqp"},{"n":"科幻片","v":"/khp"},{"n":"恐怖片","v":"/kbp"},{"n":"惊悚片","v":"/jsp"},{"n":"战争片","v":"/zzp"},{"n":"剧情片","v":"/jqp"}]}], + "Tv":[{"key":"class","name":"剧情","value":[{"n":"全部","v":""},{"n":"美剧","v":"/oumei"},{"n":"韩剧","v":"/hanju"},{"n":"日剧","v":"/riju"},{"n":"泰剧","v":"/yataiju"},{"n":"网剧","v":"/wangju"},{"n":"台剧","v":"/taiju"},{"n":"国产","v":"/neidi"},{"n":"港剧","v":"/tvbgj"},{"n":"英剧","v":"/yingju"}]}], + "Zy":[{"key":"class","name":"剧情","value":[{"n":"全部","v":""},{"n":"国综","v":"/guozong"},{"n":"韩综","v":"/hanzong"},{"n":"美综","v":"/meizong"}]}], + "Dm":[{"key":"class","name":"剧情","value":[{"n":"全部","v":""},{"n":"动画","v":"/donghua"},{"n":"日漫","v":"/riman"},{"n":"国漫","v":"/guoman"},{"n":"美漫","v":"/meiman"}]}], + "qita":[{"key":"class","name":"剧情","value":[{"n":"全部","v":""},{"n":"记录片","v":"/Jlp"},{"n":"经典片","v":"/Jdp"},{"n":"经典剧","v":"/Jdj"},{"n":"网大电影","v":"/wlp"},{"n":"国产老电影","v":"/laodianying"}]}] + }, + searchUrl: '/auete2so.php?page=fypage&searchword=**', + searchable: 2, + quickSearch: 1, + headers: { + 'User-Agent': 'PC_UA', + 'Cookie': 'ssea2_search=ok' + }, + class_parse: '.mr-auto li:gt(0):lt(6);a&&Text;a&&href;/(\\w+)/index.html', + play_parse: true, + lazy:'js:eval(unescape(base64Decode("anM6CgkJcGRmaCA9IGpzcC5wZGZoOyBwZGZhID0ganNwLnBkZmE7IHBkID0ganNwLnBkOwoJCWxldCBkb2N1bWVudCA9IHt9OwoJCWxldCBuYXZpZ2F0b3IgPSB7CgkJCXVzZXJBZ2VudDogTU9CSUxFX1VBLAoJCX07CgkJbGV0IGJhc2U2NGRlY29kZSA9IGJhc2U2NERlY29kZTsKCQlsZXQgcG4gPSAnJywgbm93ID0gJycsIG5leHRQYWdlID0gJycsIHByZVBhZ2UgPSAnJywgbmV4dCA9ICcnLCB2aWQgPSAnJywgdmZyb20gPSAnJywgdnBhcnQgPSAnJywgc3JjVXJsID0gJyc7CgkJZXZhbChyZXF1ZXN0KEhPU1QgKyAiL2pzL3BsYXkuanMiKSk7CgkJbGV0IGh0bWwgPSByZXF1ZXN0KGlucHV0KTsKCQlldmFsKHBkZmgoaHRtbCwgIi5tYi0yJiZzY3JpcHQmJkh0bWwiKS5yZXBsYWNlQWxsKCd2YXIgJywnJykpOwoJCWV2YWwocGRmaChodG1sLCAiLm1iLTImJnNjcmlwdCwxJiZIdG1sIikucmVwbGFjZUFsbCgndmFyICcsJycpLnNwbGl0KCJkb2N1bWVudCIpWzBdKTsKCQlsZXQgcGFyc2VIdG1sID0gcmVxdWVzdChIT1NUICsgIi9qcy9wbGF5ZXIvIiArIHBuICsgIi5odG1sIik7CgkJbGV0IHBhcmVudCA9IHsKCQkJbm93OiBub3csCgkJCW5leHRQYWdlOiBuZXh0UGFnZSwKCQkJbmV4dDogbmV4dCwKCQkJdmlkOiB2aWQsCgkJCXZmcm9tOiB2ZnJvbSwKCQkJdnBhcnQ6IHZwYXJ0LAoJCX07CgkJbGV0IHBhcmpzID0gcGRmaChwYXJzZUh0bWwsICJib2R5JiZzY3JpcHQmJkh0bWwiKTsKCQlldmFsKCJzcmNVcmwgPSAnIiArIHBkZmgocGFyanMsICJpZnJhbWUmJnNyYyIpICsgIiciKTsKCQlpZiAoc3JjVXJsLmluZGV4T2YoIj91cmw9IikgPiAtMSB8fCBzcmNVcmwuaW5kZXhPZigiP3VpZD0iKSA+IC0xKSB7CgkJCWlucHV0ID0ge2p4OjAsIHVybDpzcmNVcmwuc3BsaXQoIj0iKVsxXSwgcGFyc2U6MH0KCQl9IGVsc2UgewoJCQlsZXQgcHVybCA9IHNyY1VybC5zcGxpdCgiPSIpWzFdLnNwbGl0KCIsIilbMV07CgkJCWlucHV0ID0ge2p4OjAsIHVybDpwdXJsLCBwYXJzZTowfQoJCX0=")))', + limit: 6, + 推荐: '*', + 一级: '.threadlist .trans_3;.title&&Text;.lazy&&src;.hdtag&&Text;a&&href', + 二级: { + "title":".cover a&&title;.message&&p:eq(2)&&Text", + "img": ".cover img&&src", + "desc":".w-100&&Text;;.message&&p:eq(4)&&Text;.message&&p:eq(5)&&Text;.message&&p:eq(6)&&Text", + "content": ".message p:eq(-1)&&Text", + "tabs": `js: + TABS = []; + let tabs = pdfa(html, 'h2'); + tabs.forEach((it) => { + TABS.push(pdfh(it, "body&&Text").split('』')[1].split(':')[0]) + }); + `, + "lists": "#player_list:eq(#id) li" + }, + 搜索: '.card-body .media;.text-danger&&Text;;.data&&Text;a&&href', +} \ No newline at end of file diff --git a/JN/EXT/JS/独播库[飞].js b/JN/EXT/JS/独播库[飞].js index c6305d2d..5abdad81 100644 --- a/JN/EXT/JS/独播库[飞].js +++ b/JN/EXT/JS/独播库[飞].js @@ -1,9 +1,11 @@ -muban.首图.二级.title = 'h1&&Text;.data--span:eq(0)&&Text'; -muban.首图.二级.desc = '.score&&Text;;;.data--span:eq(2)&&Text;.data--span:eq(3)&&Text'; -muban.首图.二级.content = '.data:eq(5)&&Text'; +/** + * 影视TV 超連結跳轉支持 + * https://t.me/fongmi_offical/ + * https://github.com/FongMi/Release/tree/main/apk + */ + var rule = { title:'独播库[飞]', - 模板:'首图', host:'https://www.duboku.tv', // host:'https://u.duboku.io', url: '/vodshow/fyfilter.html', @@ -29,10 +31,126 @@ var rule = { 14:{cateId:'14'}, 20:{cateId:'20'} }, + searchUrl:'/vodsearch/**----------fypage---.html', + searchable: 2, class_parse:'.nav-list li;a&&Text;a&&href;.*/(.*?).html', - lazy:"js:var html=JSON.parse(request(input).match(/r player_.*?=(.*?) { + d.push({ + title: pdfh(it, "a&&title"), + desc: pdfh(it, ".pic-text&&Text") + ' ⭐' + pdfh(it, ".tag&&Text"), + pic_url: pd(it, ".lazyload&&data-original"), + url: pd(it, "a&&href") + }) + }); + setResult(d) + `, + 一级:`js: + pdfh = jsp.pdfh, pdfa = jsp.pdfa, pd = jsp.pd; + let d = []; + let html = ''; + let list = {}; + if (cateObj.tid.endsWith('_clicklink')) { + let tid = cateObj.tid.split('_')[0]; + input = HOST + '/vodsearch/' + tid + '----------' + MY_PAGE + '---.html'; + html = request(input); + list = pdfa(html, "#searchList&&li"); + } else { + html = request(input); + list = pdfa(html, "ul.myui-vodlist&&li"); + } + list.forEach(it => { + d.push({ + title: pdfh(it, "a&&title"), + desc: pdfh(it, ".pic-text&&Text") + ' ⭐' + pdfh(it, ".tag&&Text"), + pic_url: pd(it, ".lazyload&&data-original"), + url: pd(it, "a&&href") + }) + }); + setResult(d) + `, + 二级:`js: + pdfh = jsp.pdfh, pdfa = jsp.pdfa, pd = jsp.pd; + function getLink(data) { + let link = data.map(it => { + return '[a=cr:' + JSON.stringify({'id':it+'_clicklink','name':it}) + '/]' + it + '[/a]' + }).join(', '); + return link + } + try { + let html = request(input); + let vod_actor = pdfh(html, "p.data--span:eq(2)&&Text").split(' '); + log('vod_actor ===> ' + vod_actor); + let vod_director = pdfh(html, "p.data--span:eq(3)&&Text").split(' '); + log('vod_director ===> ' + vod_director); + VOD = { + vod_name: pdfh(html, "h1&&Text"), + type_name: pdfh(html, "p.data--span:eq(0)&&Text"), + vod_pic: pd(html, ".lazyload&&data-original"), + vod_remarks: pdfh(html, "p.data:eq(1)&&Text"), + vod_actor: getLink(vod_actor), // 影视TV click lick + vod_director: getLink(vod_director), // 影视TV click lick + vod_content: pdfh(html, ".sketch&&Text") + }; + let playFrom = []; + let vod_tab_list = []; + let tabs = pdfa(html, "body .nav-tabs"); + tabs.forEach((it) => { + playFrom.push(pdfh(it, "a&&Text")) + }); + for (let i = 0; i < playFrom.length; i++) { + let p1 = ".myui-content__list:eq(#id)&&li".replaceAll("#id", i); + let new_vod_list = []; + let vodList = []; + try { + vodList = pdfa(html, p1) + } catch (e) {} + for (let i = 0; i < vodList.length; i++) { + let it = vodList[i]; + new_vod_list.push(pdfh(it, "body&&Text").trim() + "$" + pd(it, "a&&href")) + } + let vlist = new_vod_list.join("#"); + vod_tab_list.push(vlist) + } + VOD.vod_play_from = playFrom.join("$$$"); + VOD.vod_play_url = vod_tab_list.join("$$$"); + } catch (e) { + log("获取二级详情页发生错误:" + e.message); + } + `, + 搜索:`js: + pdfh = jsp.pdfh, pdfa = jsp.pdfa, pd = jsp.pd; + let d = []; + let html = request(input); + let list = pdfa(html, "#searchList&&li"); + list.forEach(it => { + d.push({ + title: pdfh(it, "a&&title"), + desc: pdfh(it, ".pic-text&&Text") + ' ⭐' + pdfh(it, ".tag&&Text"), + pic_url: pd(it, ".lazyload&&data-original"), + url: pd(it, "a&&href") + }) + }); + setResult(d) + `, } \ No newline at end of file diff --git a/JN/EXT/JS/荐片.js b/JN/EXT/JS/荐片.js index 2cca085d..3e9a9f76 100644 --- a/JN/EXT/JS/荐片.js +++ b/JN/EXT/JS/荐片.js @@ -1,90 +1,149 @@ +/** + * 影视TV 超連結跳轉支持 + * https://t.me/fongmi_offical/ + * https://github.com/FongMi/Release/tree/main/apk + */ + var rule = { - title:'荐片', - host:'http://api2.rinhome.com', - // homeUrl:'https://yjpapipxblwdohpakljwg.hxhzs.com/api/tag/hand?code=unknown601193cf375db73d&channel=wandoujia',//网站的首页链接,用于分类获取和推荐获取 - homeUrl:'/api/tag/hand?code=unknown601193cf375db73d&channel=wandoujia',//网站的首页链接,用于分类获取和推荐获取 - // url:'/api/crumb/list?area=0&category_id=fyclass&page=fypage&type=0&limit=24&fyfilter', - url:'/api/crumb/list?area=0&page=fypage&type=0&limit=24&fyfilter', - class_name:'全部&电影&电视剧&动漫&综艺', // 筛选 /api/term/ad_fenlei?limit=10&page=1 - class_url:'0&1&2&3&4', - detailUrl:'/api/node/detail?channel=wandoujia&token=&id=fyid',//二级详情拼接链接(json格式用) - searchUrl:'/api/video/search?key=**&page=fypage', - searchable:2, - quickSearch:0, - filterable:1, - filter:{ - "0":[{"key":"year","name":"年代","value":[{"n":"全部","v":"0"},{"n":"2023","v":"153"},{"n":"2022","v":"101"},{"n":"2021","v":"118"},{"n":"2020","v":"16"},{"n":"2019","v":"7"},{"n":"2018","v":"2"},{"n":"2017","v":"3"},{"n":"2016","v":"22"}]},{"key":"sort","name":"排序","value":[{"n":"热门","v":"hot"},{"n":"评分","v":"rating"},{"n":"更新","v":"update"}]}], - "1":[{"key":"cateId","name":"分类","value":[{"n":"全部","v":"1"},{"n":"首推","v":"5"},{"n":"动作","v":"6"},{"n":"喜剧","v":"7"},{"n":"战争","v":"8"},{"n":"恐怖","v":"9"},{"n":"剧情","v":"10"},{"n":"爱情","v":"11"},{"n":"科幻","v":"12"},{"n":"动画","v":"13"}]},{"key":"year","name":"年代","value":[{"n":"全部","v":"0"},{"n":"2023","v":"153"},{"n":"2022","v":"101"},{"n":"2021","v":"118"},{"n":"2020","v":"16"},{"n":"2019","v":"7"},{"n":"2018","v":"2"},{"n":"2017","v":"3"},{"n":"2016","v":"22"}]},{"key":"sort","name":"排序","value":[{"n":"热门","v":"hot"},{"n":"评分","v":"rating"},{"n":"更新","v":"update"}]}], - "2":[{"key":"cateId","name":"分类","value":[{"n":"全部","v":"2"},{"n":"首推","v":"14"},{"n":"国产","v":"15"},{"n":"港台","v":"16"},{"n":"日韩","v":"17"},{"n":"海外","v":"18"}]},{"key":"year","name":"年代","value":[{"n":"全部","v":"0"},{"n":"2023","v":"153"},{"n":"2022","v":"101"},{"n":"2021","v":"118"},{"n":"2020","v":"16"},{"n":"2019","v":"7"},{"n":"2018","v":"2"},{"n":"2017","v":"3"},{"n":"2016","v":"22"}]},{"key":"sort","name":"排序","value":[{"n":"热门","v":"hot"},{"n":"评分","v":"rating"},{"n":"更新","v":"update"}]}], - "3":[{"key":"cateId","name":"分类","value":[{"n":"全部","v":"3"},{"n":"首推","v":"19"},{"n":"海外","v":"20"},{"n":"日本","v":"21"},{"n":"国产","v":"22"}]},{"key":"year","name":"年代","value":[{"n":"全部","v":"0"},{"n":"2023","v":"153"},{"n":"2022","v":"101"},{"n":"2021","v":"118"},{"n":"2020","v":"16"},{"n":"2019","v":"7"},{"n":"2018","v":"2"},{"n":"2017","v":"3"},{"n":"2016","v":"22"}]},{"key":"sort","name":"排序","value":[{"n":"热门","v":"hot"},{"n":"评分","v":"rating"},{"n":"更新","v":"update"}]}], - "4":[{"key":"cateId","name":"分类","value":[{"n":"全部","v":"4"},{"n":"首推","v":"23"},{"n":"国产","v":"24"},{"n":"海外","v":"25"},{"n":"港台","v":"26"}]},{"key":"year","name":"年代","value":[{"n":"全部","v":"0"},{"n":"2023","v":"153"},{"n":"2022","v":"101"},{"n":"2021","v":"118"},{"n":"2020","v":"16"},{"n":"2019","v":"7"},{"n":"2018","v":"2"},{"n":"2017","v":"3"},{"n":"2016","v":"22"}]},{"key":"sort","name":"排序","value":[{"n":"热门","v":"hot"},{"n":"评分","v":"rating"},{"n":"更新","v":"update"}]}] - }, - // filter_url:'sort={{fl.sort or "hot"}}&year={{fl.year or "0"}}', - filter_url:'sort={{fl.sort or "update"}}&year={{fl.year or "0"}}&category_id={{fl.cateId}}', - filter_def:{ + title: '荐片', + host: 'http://api2.rinhome.com', + homeUrl: '/api/tag/hand?code=unknown601193cf375db73d&channel=wandoujia',//网站的首页链接,用于分类获取和推荐获取 + // url:'/api/crumb/list?area=0&category_id=fyclass&page=fypage&type=0&limit=24&fyfilter', + url: '/api/crumb/list?page=fypage&type=0&limit=24&fyfilter', + class_name: '全部&电影&电视剧&动漫&综艺', // 筛选 /api/term/ad_fenlei?limit=10&page=1 + class_url: '0&1&2&3&4', + detailUrl: '/api/node/detail?channel=wandoujia&token=&id=fyid',//二级详情拼接链接(json格式用) + searchUrl: '/api/video/search?key=**&page=fypage', + searchable: 2, + quickSearch: 0, + filterable: 1, + filter: { + "0":[{"key":"area","name":"地區","value":[{"n":"全部","v":"0"},{"n":"国产","v":"1"},{"n":"中国香港","v":"3"},{"n":"中国台湾","v":"6"},{"n":"美国","v":"5"},{"n":"韩国","v":"18"},{"n":"日本","v":"2"}]},{"key":"year","name":"年代","value":[{"n":"全部","v":"0"},{"n":"2023","v":"153"},{"n":"2022","v":"101"},{"n":"2021","v":"118"},{"n":"2020","v":"16"},{"n":"2019","v":"7"},{"n":"2018","v":"2"},{"n":"2017","v":"3"},{"n":"2016","v":"22"}]},{"key":"sort","name":"排序","value":[{"n":"热门","v":"hot"},{"n":"评分","v":"rating"},{"n":"更新","v":"update"}]}], + "1":[{"key":"cateId","name":"分类","value":[{"n":"全部","v":"1"},{"n":"首推","v":"5"},{"n":"动作","v":"6"},{"n":"喜剧","v":"7"},{"n":"战争","v":"8"},{"n":"恐怖","v":"9"},{"n":"剧情","v":"10"},{"n":"爱情","v":"11"},{"n":"科幻","v":"12"},{"n":"动画","v":"13"}]},{"key":"area","name":"地區","value":[{"n":"全部","v":"0"},{"n":"国产","v":"1"},{"n":"中国香港","v":"3"},{"n":"中国台湾","v":"6"},{"n":"美国","v":"5"},{"n":"韩国","v":"18"},{"n":"日本","v":"2"}]},{"key":"year","name":"年代","value":[{"n":"全部","v":"0"},{"n":"2023","v":"153"},{"n":"2022","v":"101"},{"n":"2021","v":"118"},{"n":"2020","v":"16"},{"n":"2019","v":"7"},{"n":"2018","v":"2"},{"n":"2017","v":"3"},{"n":"2016","v":"22"}]},{"key":"sort","name":"排序","value":[{"n":"热门","v":"hot"},{"n":"评分","v":"rating"},{"n":"更新","v":"update"}]}], + "2":[{"key":"cateId","name":"分类","value":[{"n":"全部","v":"2"},{"n":"首推","v":"14"},{"n":"国产","v":"15"},{"n":"港台","v":"16"},{"n":"日韩","v":"17"},{"n":"海外","v":"18"}]},{"key":"area","name":"地區","value":[{"n":"全部","v":"0"},{"n":"国产","v":"1"},{"n":"中国香港","v":"3"},{"n":"中国台湾","v":"6"},{"n":"美国","v":"5"},{"n":"韩国","v":"18"},{"n":"日本","v":"2"}]},{"key":"year","name":"年代","value":[{"n":"全部","v":"0"},{"n":"2023","v":"153"},{"n":"2022","v":"101"},{"n":"2021","v":"118"},{"n":"2020","v":"16"},{"n":"2019","v":"7"},{"n":"2018","v":"2"},{"n":"2017","v":"3"},{"n":"2016","v":"22"}]},{"key":"sort","name":"排序","value":[{"n":"热门","v":"hot"},{"n":"评分","v":"rating"},{"n":"更新","v":"update"}]}], + "3":[{"key":"cateId","name":"分类","value":[{"n":"全部","v":"3"},{"n":"首推","v":"19"},{"n":"海外","v":"20"},{"n":"日本","v":"21"},{"n":"国产","v":"22"}]},{"key":"area","name":"地區","value":[{"n":"全部","v":"0"},{"n":"国产","v":"1"},{"n":"中国香港","v":"3"},{"n":"中国台湾","v":"6"},{"n":"美国","v":"5"},{"n":"韩国","v":"18"},{"n":"日本","v":"2"}]},{"key":"year","name":"年代","value":[{"n":"全部","v":"0"},{"n":"2023","v":"153"},{"n":"2022","v":"101"},{"n":"2021","v":"118"},{"n":"2020","v":"16"},{"n":"2019","v":"7"},{"n":"2018","v":"2"},{"n":"2017","v":"3"},{"n":"2016","v":"22"}]},{"key":"sort","name":"排序","value":[{"n":"热门","v":"hot"},{"n":"评分","v":"rating"},{"n":"更新","v":"update"}]}], + "4":[{"key":"cateId","name":"分类","value":[{"n":"全部","v":"4"},{"n":"首推","v":"23"},{"n":"国产","v":"24"},{"n":"海外","v":"25"},{"n":"港台","v":"26"}]},{"key":"area","name":"地區","value":[{"n":"全部","v":"0"},{"n":"国产","v":"1"},{"n":"中国香港","v":"3"},{"n":"中国台湾","v":"6"},{"n":"美国","v":"5"},{"n":"韩国","v":"18"},{"n":"日本","v":"2"}]},{"key":"year","name":"年代","value":[{"n":"全部","v":"0"},{"n":"2023","v":"153"},{"n":"2022","v":"101"},{"n":"2021","v":"118"},{"n":"2020","v":"16"},{"n":"2019","v":"7"},{"n":"2018","v":"2"},{"n":"2017","v":"3"},{"n":"2016","v":"22"}]},{"key":"sort","name":"排序","value":[{"n":"热门","v":"hot"},{"n":"评分","v":"rating"},{"n":"更新","v":"update"}]}] + }, + filter_url: 'area={{fl.area or "0"}}&sort={{fl.sort or "update"}}&year={{fl.year or "0"}}&category_id={{fl.cateId}}', + filter_def: { 0:{cateId:'0'}, - 1:{cateId:'1'}, + 1:{cateId:'1'}, 2:{cateId:'2'}, 3:{cateId:'3'}, 4:{cateId:'4'} }, - headers:{ - 'User-Agent':'jianpian-android/350', - 'JPAUTH':'y261ow7kF2dtzlxh1GS9EB8nbTxNmaK/QQIAjctlKiEv' - }, - timeout:5000, - limit:8, - play_parse:true, - play_json:[{ - re:'*', - json:{ - parse:0, - jx:0 + headers: { + 'User-Agent': 'jianpian-android/350', + 'JPAUTH': 'y261ow7kF2dtzlxh1GS9EB8nbTxNmaK/QQIAjctlKiEv' + }, + timeout: 5000, + limit: 8, + play_parse: true, + play_json: [{ + re: '*', + json: { + parse: 0, + jx: 0 + } + }], + lazy: '', + 图片来源: '@Referer=www.jianpianapp.com@User-Agent=jianpian-version353', + // 推荐:'json:.video;*;*;*;*', + 推荐: `js: + var d = []; + let html = request(input); + html = JSON.parse(html).data[0].video; + html.forEach(it => { + d.push({ + title: it.title, + img: it.path, + desc: it.playlist.title + ' ⭐' + it.score, + url: it.id + }) + }); + setResult(d); + `, + // 一级:'json:data;title;path;playlist.title;id', + 一级: `js: + if (cateObj.tid.endsWith('_clicklink')) { + cateObj.tid = cateObj.tid.split('_')[0]; + input = HOST + '/api/video/search?key=' + cateObj.tid + '&page=' + + MY_PAGE; } - }], - lazy:'', - // double:true, - 图片来源:'@Referer=www.jianpianapp.com@User-Agent=jianpian-version353', - // 推荐:'json:data;room;*;cover;*;*', - 推荐:'json:.video;*;*;*;*', - 一级:'json:data;title;path;playlist.title;id', - 二级:{ - // title:'data.title', - title:'data.title;data.types[0].name', - // desc:';data.description;data.id', - desc:'data.score;data.year.title;data.area.title;data.actors[0].name;data.directors[0].name', - img:'data.thumbnail', - // content:'data.thumbnail', - content:'data.description', - is_json:1, - tabs:`js: - TABS = []; - if (html.data.have_ftp_ur == 1) { - TABS.push("边下边播超清版") + var d = []; + let html = request(input); + html = JSON.parse(html).data; + html.forEach(it => { + d.push({ + title: it.title, + img: it.thumbnail||it.path, + desc: (it.mask || it.playlist.title) + ' ⭐' + it.score, + url: it.id + }) + }); + setResult(d); + `, + 二级: `js: + function getLink(data) { + let link = data.map(it => { + return '[a=cr:' + JSON.stringify({'id':it.name+'_clicklink','name':it.name}) + '/]' + it.name + '[/a]' + }).join(', '); + return link + } + try { + let html = request(input); + html = JSON.parse(html); + let node = html.data; + VOD = { + vod_id: node.id, + vod_name: node.title, + vod_pic: node.thumbnail, + type_name: node.types[0].name, + vod_year: node.year.title, + vod_area: node.area.title, + vod_remarks: node.score, + vod_actor: getLink(node.actors), + vod_director: getLink(node.directors), + vod_content: node.description.strip() + }; + if (typeof play_url === 'undefined') { + var play_url = '' } - if (html.data.have_m3u8_ur == 1) { - TABS.push("在线点播普清版") - } - `, - lists:`js: - log(TABS); - LISTS = []; - TABS.forEach(function(tab) { - if (/边下边播/.test(tab)) { - let ftp = html.data.new_ftp_list; - let d = ftp.map(function(it) { - return it.title + "$" + (/m3u8/.test(it.url) ? play_url + it.url : "tvbox-xg:" + it.url) - }); - LISTS.push(d) - } else if (/在线点播/.test(tab)) { - let m3u = html.data.new_m3u8_list; - let d = m3u.map(function(it) { - return it.title + "$" + (/m3u8/.test(it.url) ? play_url + it.url : "tvbox-xg:" + it.url) - }); - LISTS.push(d) - } + let playMap = {}; + if (node.have_ftp_ur == 1) { + playMap["边下边播超清版"] = node.new_ftp_list.map(it => { + return it.title + "$" + (/m3u8/.test(it.url) ? play_url + it.url : "tvbox-xg:" + it.url) + }).join('#'); + } + if (node.have_m3u8_ur == 1) { + playMap["在线点播普清版"] = node.new_m3u8_list.map(it => { + return it.title + "$" + (/m3u8/.test(it.url) ? play_url + it.url : "tvbox-xg:" + it.url) + }).join('#'); + } + let playFrom = []; + let playList = []; + Object.keys(playMap).forEach(key => { + playFrom.append(key); + playList.append(playMap[key]) }); - `, - }, - 搜索:'json:data;*;thumbnail;mask;*', -} + VOD.vod_play_from = playFrom.join('$$$'); + VOD.vod_play_url = playList.join('$$$'); + } catch (e) { + log("获取二级详情页发生错误:" + e.message); + } + `, + // 搜索:'json:data;*;thumbnail;mask;*', + 搜索: `js: + var d = []; + let html = request(input); + html = JSON.parse(html).data; + html.forEach(it => { + d.push({ + title: it.title, + img: it.thumbnail, + desc: it.mask + ' ⭐' + it.score, + url: it.id + }) + }); + setResult(d); + `, +} \ No newline at end of file