From 4c83979cc0c814ecdbc0a63942ae7d70fc4e6982 Mon Sep 17 00:00:00 2001 From: aliluya Date: Fri, 20 Oct 2023 08:22:31 +0000 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E6=96=87=E4=BB=B6=E8=87=B3?= =?UTF-8?q?=20js?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- js/007影视.js | 47 ++++++++++ js/4K电影网.js | 28 ++++++ js/4K视界[V2].js | 226 +++++++++++++++++++++++++++++++++++++++++++++++ js/4khdr.js | 186 ++++++++++++++++++++++++++++++++++++++ js/6V新版[磁].js | 65 ++++++++++++++ 5 files changed, 552 insertions(+) create mode 100644 js/007影视.js create mode 100644 js/4K电影网.js create mode 100644 js/4K视界[V2].js create mode 100644 js/4khdr.js create mode 100644 js/6V新版[磁].js diff --git a/js/007影视.js b/js/007影视.js new file mode 100644 index 0000000..6e4b606 --- /dev/null +++ b/js/007影视.js @@ -0,0 +1,47 @@ +// 搜索数字验证 +muban.首图2.二级.desc = '.data:eq(1)&&Text;;;.data:eq(6)&&Text;.data:eq(5)&&Text'; +muban.首图2.二级.tabs = '.nav-tabs.dpplay&&li'; +var rule = { + title:'007影视', + 搜索编码:'utf-8', + // 搜索编码:'gbk', + 模板:'首图2', + ali_token:'{{ali_token}}', + bili_cookie:'{{bili_cookie}}', + host:'https://www.007ts.me', + // url:'/show/fyclass--------fypage---.html', + url:'/show/fyclassfyfilter.html', + filterable:1,//是否启用分类筛选, + filter_url:'-{{fl.area}}-{{fl.by}}-{{fl.class}}-{{fl.lang}}----fypage---{{fl.year}}', + filter:{ + "1":[{"key":"class","name":"剧情","value":[{"n":"全部","v":""},{"n":"爱情","v":"爱情"},{"n":"动作","v":"动作"},{"n":"喜剧","v":"喜剧"},{"n":"战争","v":"战争"},{"n":"科幻","v":"科幻"},{"n":"剧情","v":"剧情"},{"n":"武侠","v":"武侠"},{"n":"冒险","v":"冒险"},{"n":"枪战","v":"枪战"},{"n":"恐怖","v":"恐怖"},{"n":"微电影","v":"微电影"},{"n":"其它","v":"其它"}]},{"key":"area","name":"地区","value":[{"n":"全部","v":""},{"n":"大陆","v":"大陆"},{"n":"香港","v":"香港"},{"n":"台湾","v":"台湾"},{"n":"韩国","v":"韩国"},{"n":"日本","v":"日本"},{"n":"美国","v":"美国"},{"n":"泰国","v":"泰国"},{"n":"新加坡","v":"新加坡"},{"n":"马来西亚","v":"马来西亚"},{"n":"印度","v":"印度"},{"n":"英国","v":"英国"},{"n":"法国","v":"法国"},{"n":"加拿大","v":"加拿大"},{"n":"西班牙","v":"西班牙"},{"n":"俄罗斯","v":"俄罗斯"},{"n":"其它","v":"其它"}]},{"key":"year","name":"年份","value":[{"n":"全部","v":""},{"n":"2023","v":"2023"},{"n":"2022","v":"2022"},{"n":"2021","v":"2021"},{"n":"2020","v":"2020"},{"n":"2019","v":"2019"},{"n":"2018","v":"2018"},{"n":"2017","v":"2017"},{"n":"2016","v":"2016"},{"n":"2015","v":"2015"},{"n":"2014","v":"2014"},{"n":"2013","v":"2013"},{"n":"2012","v":"2012"},{"n":"2011","v":"2011"},{"n":"2010","v":"2010"},{"n":"2009","v":"2009"},{"n":"2008","v":"2008"},{"n":"2007","v":"2007"},{"n":"2006","v":"2006"},{"n":"2005","v":"2005"},{"n":"2004","v":"2004"}]},{"key":"lang","name":"语言","value":[{"n":"全部","v":""},{"n":"国语","v":"国语"},{"n":"英语","v":"英语"},{"n":"粤语","v":"粤语"},{"n":"闽南语","v":"闽南语"},{"n":"韩语","v":"韩语"},{"n":"日语","v":"日语"},{"n":"法语","v":"法语"},{"n":"德语","v":"德语"},{"n":"其它","v":"其它"}]},{"key":"by","name":"排序","value":[{"n":"时间","v":"time"},{"n":"人气","v":"hits"},{"n":"评分","v":"score"}]}], + "2":[{"key":"class","name":"剧情","value":[{"n":"全部","v":""},{"n":"古装","v":"古装"},{"n":"战争","v":"战争"},{"n":"喜剧","v":"喜剧"},{"n":"家庭","v":"家庭"},{"n":"犯罪","v":"犯罪"},{"n":"动作","v":"动作"},{"n":"奇幻","v":"奇幻"},{"n":"剧情","v":"剧情"},{"n":"历史","v":"历史"},{"n":"经典","v":"经典"},{"n":"乡村","v":"乡村"},{"n":"情景","v":"情景"},{"n":"商战","v":"商战"},{"n":"网剧","v":"网剧"},{"n":"其他","v":"其他"}]},{"key":"area","name":"地区","value":[{"n":"全部","v":""},{"n":"大陆","v":"大陆"},{"n":"香港","v":"香港"},{"n":"台湾","v":"台湾"},{"n":"韩国","v":"韩国"},{"n":"日本","v":"日本"},{"n":"美国","v":"美国"},{"n":"泰国","v":"泰国"},{"n":"新加坡","v":"新加坡"},{"n":"马来西亚","v":"马来西亚"},{"n":"印度","v":"印度"},{"n":"英国","v":"英国"},{"n":"法国","v":"法国"},{"n":"加拿大","v":"加拿大"},{"n":"西班牙","v":"西班牙"},{"n":"俄罗斯","v":"俄罗斯"},{"n":"其它","v":"其它"}]},{"key":"year","name":"年份","value":[{"n":"全部","v":""},{"n":"2023","v":"2023"},{"n":"2022","v":"2022"},{"n":"2021","v":"2021"},{"n":"2020","v":"2020"},{"n":"2019","v":"2019"},{"n":"2018","v":"2018"},{"n":"2017","v":"2017"},{"n":"2016","v":"2016"},{"n":"2015","v":"2015"},{"n":"2014","v":"2014"},{"n":"2013","v":"2013"},{"n":"2012","v":"2012"},{"n":"2011","v":"2011"},{"n":"2010","v":"2010"},{"n":"2009","v":"2009"},{"n":"2008","v":"2008"},{"n":"2007","v":"2007"},{"n":"2006","v":"2006"},{"n":"2005","v":"2005"},{"n":"2004","v":"2004"}]},{"key":"lang","name":"语言","value":[{"n":"全部","v":""},{"n":"国语","v":"国语"},{"n":"英语","v":"英语"},{"n":"粤语","v":"粤语"},{"n":"闽南语","v":"闽南语"},{"n":"韩语","v":"韩语"},{"n":"日语","v":"日语"},{"n":"法语","v":"法语"},{"n":"德语","v":"德语"},{"n":"其它","v":"其它"}]},{"key":"by","name":"排序","value":[{"n":"时间","v":"time"},{"n":"人气","v":"hits"},{"n":"评分","v":"score"}]}], + "3":[{"key":"class","name":"剧情","value":[{"n":"全部","v":""},{"n":"情感","v":"情感"},{"n":"科幻","v":"科幻"},{"n":"热血","v":"热血"},{"n":"推理","v":"推理"},{"n":"搞笑","v":"搞笑"},{"n":"冒险","v":"冒险"},{"n":"萝莉","v":"萝莉"},{"n":"校园","v":"校园"},{"n":"动作","v":"动作"},{"n":"机战","v":"机战"},{"n":"运动","v":"运动"},{"n":"战争","v":"战争"},{"n":"少年","v":"少年"},{"n":"少女","v":"少女"},{"n":"社会","v":"社会"},{"n":"原创","v":"原创"},{"n":"亲子","v":"亲子"},{"n":"益智","v":"益智"},{"n":"励志","v":"励志"},{"n":"其他","v":"其他"}]},{"key":"area","name":"地区","value":[{"n":"全部","v":""},{"n":"大陆","v":"大陆"},{"n":"香港","v":"香港"},{"n":"台湾","v":"台湾"},{"n":"韩国","v":"韩国"},{"n":"日本","v":"日本"},{"n":"美国","v":"美国"},{"n":"泰国","v":"泰国"},{"n":"新加坡","v":"新加坡"},{"n":"马来西亚","v":"马来西亚"},{"n":"印度","v":"印度"},{"n":"英国","v":"英国"},{"n":"法国","v":"法国"},{"n":"加拿大","v":"加拿大"},{"n":"西班牙","v":"西班牙"},{"n":"俄罗斯","v":"俄罗斯"},{"n":"其它","v":"其它"}]},{"key":"year","name":"年份","value":[{"n":"全部","v":""},{"n":"2023","v":"2023"},{"n":"2022","v":"2022"},{"n":"2021","v":"2021"},{"n":"2020","v":"2020"},{"n":"2019","v":"2019"},{"n":"2018","v":"2018"},{"n":"2017","v":"2017"},{"n":"2016","v":"2016"},{"n":"2015","v":"2015"},{"n":"2014","v":"2014"},{"n":"2013","v":"2013"},{"n":"2012","v":"2012"},{"n":"2011","v":"2011"},{"n":"2010","v":"2010"},{"n":"2009","v":"2009"},{"n":"2008","v":"2008"},{"n":"2007","v":"2007"},{"n":"2006","v":"2006"},{"n":"2005","v":"2005"},{"n":"2004","v":"2004"}]},{"key":"lang","name":"语言","value":[{"n":"全部","v":""},{"n":"国语","v":"国语"},{"n":"英语","v":"英语"},{"n":"粤语","v":"粤语"},{"n":"闽南语","v":"闽南语"},{"n":"韩语","v":"韩语"},{"n":"日语","v":"日语"},{"n":"法语","v":"法语"},{"n":"德语","v":"德语"},{"n":"其它","v":"其它"}]},{"key":"by","name":"排序","value":[{"n":"时间","v":"time"},{"n":"人气","v":"hits"},{"n":"评分","v":"score"}]}], + "4":[{"key":"class","name":"剧情","value":[{"n":"全部","v":""},{"n":"脱口秀","v":"脱口秀"},{"n":"真人秀","v":"真人秀"},{"n":"选秀","v":"选秀"},{"n":"八卦","v":"八卦"},{"n":"访谈","v":"访谈"},{"n":"情感","v":"情感"},{"n":"生活","v":"生活"},{"n":"搞笑","v":"搞笑"},{"n":"音乐","v":"音乐"}]},{"key":"area","name":"地区","value":[{"n":"全部","v":""},{"n":"大陆","v":"大陆"},{"n":"香港","v":"香港"},{"n":"台湾","v":"台湾"},{"n":"韩国","v":"韩国"},{"n":"日本","v":"日本"},{"n":"美国","v":"美国"},{"n":"泰国","v":"泰国"},{"n":"新加坡","v":"新加坡"},{"n":"马来西亚","v":"马来西亚"},{"n":"印度","v":"印度"},{"n":"英国","v":"英国"},{"n":"法国","v":"法国"},{"n":"加拿大","v":"加拿大"},{"n":"西班牙","v":"西班牙"},{"n":"俄罗斯","v":"俄罗斯"},{"n":"其它","v":"其它"}]},{"key":"year","name":"年份","value":[{"n":"全部","v":""},{"n":"2023","v":"2023"},{"n":"2022","v":"2022"},{"n":"2021","v":"2021"},{"n":"2020","v":"2020"},{"n":"2019","v":"2019"},{"n":"2018","v":"2018"},{"n":"2017","v":"2017"},{"n":"2016","v":"2016"},{"n":"2015","v":"2015"},{"n":"2014","v":"2014"},{"n":"2013","v":"2013"},{"n":"2012","v":"2012"},{"n":"2011","v":"2011"},{"n":"2010","v":"2010"},{"n":"2009","v":"2009"},{"n":"2008","v":"2008"},{"n":"2007","v":"2007"},{"n":"2006","v":"2006"},{"n":"2005","v":"2005"},{"n":"2004","v":"2004"}]},{"key":"lang","name":"语言","value":[{"n":"全部","v":""},{"n":"国语","v":"国语"},{"n":"英语","v":"英语"},{"n":"粤语","v":"粤语"},{"n":"闽南语","v":"闽南语"},{"n":"韩语","v":"韩语"},{"n":"日语","v":"日语"},{"n":"法语","v":"法语"},{"n":"德语","v":"德语"},{"n":"其它","v":"其它"}]},{"key":"by","name":"排序","value":[{"n":"时间","v":"time"},{"n":"人气","v":"hits"},{"n":"评分","v":"score"}]}], + "7":[{"key":"by","name":"排序","value":[{"n":"时间","v":"time"},{"n":"人气","v":"hits"},{"n":"评分","v":"score"}]}], + "18":[{"key":"by","name":"排序","value":[{"n":"时间","v":"time"},{"n":"人气","v":"hits"},{"n":"评分","v":"score"}]}], + "19":[{"key":"by","name":"排序","value":[{"n":"时间","v":"time"},{"n":"人气","v":"hits"},{"n":"评分","v":"score"}]}], + "20":[{"key":"by","name":"排序","value":[{"n":"时间","v":"time"},{"n":"人气","v":"hits"},{"n":"评分","v":"score"}]}] + }, + class_parse: '.stui-header__menu li:gt(0):lt(9);a&&Text;a&&href;.*/(.*?).html', + lazy:`js:var html=JSON.parse(request(input).match(/r player_.*?=(.*?) '+stringify(videoList)); + videoList.forEach((it,idex) => { + let vlist = /v1\\.vod/.test(HOST) ? videoList[idex].vod_list : videoList[idex].vlist ; + vlist.forEach(it => { + d.push({ + url:it.vod_id, + title:it.vod_name, + img:it.vod_pic.startsWith('http') ? it.vod_pic : it.vod_pic.startsWith('//') ? 'https:' + it.vod_pic : it.vod_pic.startsWith('/') ? getHome(HOST) + it.vod_pic : getHome(HOST) + '/' + it.vod_pic, + desc:it.vod_remarks, + }); + }); + }); + setResult(d); + `, + 一级:`js: + let d = []; + let jsondata = []; + let videoList = []; + if (/v1\\.vod/.test(HOST)) { + input = input.replace('video','v1.vod').replace('tid','type').replace('pg=','page='); + jsondata = JSON.parse(request(input)); + videoList = jsondata.data.list; + } else { + input = HOST + '/'+ input.split('/')[4]; + jsondata = JSON.parse(request(input)); + videoList = jsondata.list || jsondata.data; + } + // log('videoList =========> '+stringify(videoList)); + videoList.forEach(it => { + d.push({ + url:it.vod_id, + title:it.vod_name, + img:it.vod_pic.startsWith('http') ? it.vod_pic : it.vod_pic.startsWith('//') ? 'https:' + it.vod_pic : it.vod_pic.startsWith('/') ? getHome(HOST) + it.vod_pic : getHome(HOST) + '/' + it.vod_pic, + desc:it.vod_remarks, + }); + }); + setResult(d); + `, + 二级:`js: + if (/v1\\.vod/.test(HOST)) { + input = HOST + '/'+ input.split('/')[3]; + } else { + input = HOST + '/'+ input.split('/')[3].replace('detail','video_detail').replace('vod_id','id'); + } + try { + let html = request(input); + html = JSON.parse(html); + let node = /xgapp/.test(HOST) ? html.data.vod_info : html.data; + VOD = { + vod_id: node.vod_id, + vod_name: node.vod_name, + vod_pic: node.vod_pic, + type_name: node.vod_class, + vod_year: node.vod_year, + vod_area: node.vod_area, + vod_remarks: node.vod_remarks, + vod_actor: node.vod_actor, + vod_director: node.vod_director, + vod_content: node.vod_content.strip() + }; + if (typeof play_url === 'undefined') { + var play_url = '' + } + let episodes = /v1\\.vod/.test(HOST)?node.vod_play_list:node.vod_url_with_player; + if (episodes != '') { + let playMap = {}; + episodes.forEach(ep => { + let from = []; + if (/v1\\.vod/.test(HOST)) { + from = ep.player_info.from||ep.player_info.show||ep.from||ep.show; + } else { + from = ep.code||ep.name; + } + if (!playMap.hasOwnProperty(from)) { + playMap[from] = [] + } + let parse_api = ''; + if (/v1\\.vod/.test(HOST)) { + parse_api = ep.player_info.parse != null ? ep.player_info.parse : ep.player_info.parse2; + // parse_api = /,/.test(parse_api) ? parse_api.split(',')[1] : parse_api; + } else { + parse_api = ep.parse_api; + } + log('parse_api =========> '+parse_api); + if (parse_api != null && !/\\.m3u8|\\.mp4/.test(ep.url)) { + parse_api = parse_api.replaceAll('..','.') ; + ep.url = ep.url.replaceAll('$','$'+parse_api); + } + playMap[from].push(ep.url) + }); + let playFrom = []; + let playList = []; + Object.keys(playMap).forEach(key => { + playFrom.push(key); + playList.push(playMap[key]) + }); + VOD.vod_play_from = playFrom.join('$$$'); + VOD.vod_play_url = playList.join('$$$'); + } else { + VOD.vod_play_from = node.vod_play_from; + VOD.vod_play_url = node.vod_play_url; + } + } catch (e) { + log("获取二级详情页发生错误:" + e.message); + } + `, + 搜索:`js: + let d = []; + let jsondata = []; + let videoList = []; + if (/v1\\.vod/.test(HOST)) { + input = (HOST + '/'+ input.split('/')[3]).replace('/search','').replace('text=','wd=').replace('pg=','page='); + jsondata = JSON.parse(request(input)); + videoList = jsondata.data.list; + } else { + input = HOST + '/'+ input.split('/')[3] + jsondata = JSON.parse(request(input)); + videoList = jsondata.list || jsondata.data; + } + // log('videoList =========> '+stringify(videoList)); + videoList.forEach(it => { + d.push({ + url:it.vod_id, + title:it.vod_name, + img:it.vod_pic.startsWith('http') ? it.vod_pic : it.vod_pic.startsWith('//') ? 'https:' + it.vod_pic : it.vod_pic.startsWith('/') ? getHome(HOST) + it.vod_pic : getHome(HOST) + '/' + it.vod_pic, + desc:it.vod_remarks, + }); + }); + setResult(d); + `, +} \ No newline at end of file diff --git a/js/4khdr.js b/js/4khdr.js new file mode 100644 index 0000000..832fc97 --- /dev/null +++ b/js/4khdr.js @@ -0,0 +1,186 @@ +var rule = { + title:'4KHDR[磁]', + host:'https://www.4khdr.cn', + homeUrl: "/forum.php?mod=forumdisplay&fid=2&page=1", + url: '/forum.php?mod=forumdisplay&fid=2&filter=typeid&typeid=fyclass&page=fypage', + filter_url:'{{fl.class}}', + filter:{ + }, + searchUrl: '/search.php#searchsubmit=yes&srchtxt=**;post', + searchable:2, + quickSearch:1, + filterable:0, + headers:{ + 'User-Agent': 'PC_UA', + 'Cookie':'http://127.0.0.1:9978/file:///tvbox/JS/lib/4khdr.txt', + }, + timeout:5000, + class_name: "4K电影&4K美剧&4K华语&4K动画&4K纪录片&4K日韩印&蓝光电影&蓝光美剧&蓝光华语&蓝光动画&蓝光日韩印", + class_url:"3&8&15&6&11&4&29&31&33&32&34", + play_parse:true, + play_json:[{ + re:'*', + json:{ + parse:0, + jx:0 + } + }], + lazy:'', + limit:6, + 推荐:'ul#waterfall li;a&&title;img&&src;div.auth.cl&&Text;a&&href', + 一级:'ul#waterfall li;a&&title;img&&src;div.auth.cl&&Text;a&&href', + 二级:{ + title:"#thead_subject&&Text", + img:"img.zoom&&src", + desc:'td[id^="postmessage_"] font&&Text', + content:'td[id^="postmessage_"] font&&Text', + tabs:`js: +pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd; +TABS=[] +let d = pdfa(html, 'div.pcb table.t_table a'); +let tabsa = []; +let tabsq = []; +let tabsm = false; +let tabse = false; +d.forEach(function(it) { + let burl = pdfh(it, 'a&&href'); + if (burl.startsWith("https://www.aliyundrive.com/s/")){ + tabsa.push("阿里雲盤"); + }else if (burl.startsWith("https://pan.quark.cn/s/")){ + tabsq.push("夸克網盤"); + }else if (burl.startsWith("magnet")){ + tabsm = true; + }else if (burl.startsWith("ed2k")){ + tabse = true; + } +}); +if (tabsm === true){ + TABS.push("磁力"); +} +if (tabse === true){ + TABS.push("電驢"); +} +if (false && tabsa.length + tabsq.length > 1){ + TABS.push("選擇右側綫路"); +} +let tmpIndex; +tmpIndex=1; +tabsa.forEach(function(it){ + TABS.push(it + tmpIndex); + tmpIndex = tmpIndex + 1; +}); +tmpIndex=1; +tabsq.forEach(function(it){ + TABS.push(it + tmpIndex); + tmpIndex = tmpIndex + 1; +}); +log('4khdr TABS >>>>>>>>>>>>>>>>>>' + TABS); +`, + lists:`js: +log(TABS); +pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd; +LISTS = []; +let d = pdfa(html, 'div.pcb table.t_table a'); +let lista = []; +let listq = []; +let listm = []; +let liste = []; +d.forEach(function(it){ + let burl = pdfh(it, 'a&&href'); + let title = pdfh(it, 'a&&Text'); + log('4khdr title >>>>>>>>>>>>>>>>>>>>>>>>>>' + title); + log('4khdr burl >>>>>>>>>>>>>>>>>>>>>>>>>>' + burl); + let loopresult = title + '$' + burl; + if (burl.startsWith("https://www.aliyundrive.com/s/")){ + if (true){ + if (TABS.length==1){ + burl = "http://127.0.0.1:9978/proxy?do=ali&type=push&confirm=0&url=" + encodeURIComponent(burl); + }else{ + burl = "http://127.0.0.1:9978/proxy?do=ali&type=push&url=" + encodeURIComponent(burl); + } + }else{ + burl = 'push://' + burl; + } + loopresult = title + '$' + burl; + lista.push(loopresult); + }else if (burl.startsWith("https://pan.quark.cn/s/")){ + if (true){ + if (TABS.length==1){ + burl = "http://127.0.0.1:9978/proxy?do=quark&type=push&confirm=0&url=" + encodeURIComponent(burl); + }else{ + burl = "http://127.0.0.1:9978/proxy?do=quark&type=push&url=" + encodeURIComponent(burl); + } + }else{ + burl = 'push://' + burl; + } + loopresult = title + '$' + burl; + listq.push(loopresult); + }else if (burl.startsWith("magnet")){ + listm.push(loopresult); + }else if (burl.startsWith("ed2k")){ + liste.push(loopresult); + } +}); +if (listm.length>0){ + LISTS.push(listm); +} +if (liste.length>0){ + LISTS.push(liste); +} +if (false && lista.length + listq.length > 1){ + LISTS.push(["選擇右側綫路,或3秒後自動跳過$http://127.0.0.1:10079/delay/"]); +} +lista.forEach(function(it){ + LISTS.push([it]); +}); +listq.forEach(function(it){ + LISTS.push([it]); +}); +`, + + }, + 搜索:`js: +pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd; +if (rule_fetch_params.headers.Cookie.startsWith("http")){ + rule_fetch_params.headers.Cookie=fetch(rule_fetch_params.headers.Cookie); + let cookie = rule_fetch_params.headers.Cookie; + setItem(RULE_CK, cookie); +}; +log('4khdr search cookie>>>>>>>>>>>>>>>' + rule_fetch_params.headers.Cookie); +let new_host= HOST + '/search.php'; +let new_html=request(new_host); +let formhash = pdfh(new_html, 'input[name="formhash"]&&value'); +log("4khdr formhash>>>>>>>>>>>>>>>" + formhash); +let params = 'formhash=' + formhash + '&searchsubmit=yes&srchtxt=' + encodeURIComponent(KEY); +let _fetch_params = JSON.parse(JSON.stringify(rule_fetch_params)); +let postData = { + body: params +}; +Object.assign(_fetch_params, postData); +log("4khdr search postData>>>>>>>>>>>>>>>" + JSON.stringify(_fetch_params)); +let search_html = post( HOST + '/search.php', _fetch_params) +//log("4khdr search result>>>>>>>>>>>>>>>" + search_html); +let d=[]; +let dlist = pdfa(search_html, 'div#threadlist ul li'); +dlist.forEach(function(it){ + let title = pdfh(it, 'h3&&Text'); + if (searchObj.quick === true){ + if (title.includes(KEY)){ + title = KEY; + } + } + let img = ""; + let content = pdfh(it, 'p:eq(3)&&Text'); + let desc = pdfh(it, 'p:eq(2)&&Text'); + let url = pd(it, 'a&&href', HOST); + d.push({ + title:title, + img:img, + content:content, + desc:desc, + url:url + }) +}); +setResult(d); + `, +} diff --git a/js/6V新版[磁].js b/js/6V新版[磁].js new file mode 100644 index 0000000..af57e87 --- /dev/null +++ b/js/6V新版[磁].js @@ -0,0 +1,65 @@ +var rule = { + title:'6V新版[磁]', + host:'http://www.xb6v.com', + // host:'https://www.66s6.net', + // url: '/fyclass/index_fypage.html[/fyclass/index.html]', + url: '/fyclassfyfilter/index_fypage.html[/fyclassfyfilter/index.html]', + filter_url:'{{fl.class}}', + filter:{ + "dianshiju":[{"key":"class","name":"类型","value":[{"n":"全部","v":""},{"n":"国剧","v":"/guoju"},{"n":"日韩剧","v":"/rihanju"},{"n":"欧美剧","v":"/oumeiju"}]}] + }, + searchUrl: '/e/search/index.php#show=title&tempid=1&tbname=article&mid=1&dopost=search&submit=&keyboard=**;post', + searchable:2, + quickSearch:0, + filterable:1, + headers:{ + 'User-Agent': 'MOBILE_UA' + }, + timeout:5000, + class_parse:'#menus&&li:gt(1);a&&Text;a&&href;.*/(.*)/', + cate_exclude:'欧美剧|旧版6v', + play_parse:true, + limit:6, + 推荐: '*', + 一级: '#post_container&&li;h2&&Text;img&&src;.info_date&&Text;a&&href', + 二级: { + "title": "#content&&h1&&Text;.info_category&&Text", + "img": "#post_content&&img&&src", + "desc": ";;;#post_content&&p:eq(0)&&Text;#post_content&&p:eq(2)&&Text", + "content": "#post_content&&p:eq(1)&&Text", + "tabs": `js: + TABS = ["道长磁力"]; + let tabs = pdfa(html, '#content&&h3:not(:contains(网盘))'); + tabs.forEach((it) => { + TABS.push(pdfh(it, "body&&Text").replace('播放地址','道长在线').replace('(无插件 极速播放)','一').replace('(无需安装插件)','二')) + }); + `, + "lists": `js: + log(TABS); + pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd; + LISTS = []; + let i = 1; + TABS.forEach(function(tab) { + if (/道长磁力/.test(tab)) { + var d = pdfa(html, '.context&&td'); + d = d.map(function(it) { + var title = pdfh(it, 'a&&Text'); + var burl = pd(it, 'a&&href'); + return title + '$' + burl + }); + LISTS.push(d) + } else if (/道长在线/.test(tab) && i <= TABS.length-1) { + var d = pdfa(html, '.context&&.widget:eq(list_idx)&&a'.replace("list_idx", i)); + d = d.map(function(it) { + var title = pdfh(it, 'a&&Text'); + var burl = pd(it, 'a&&href'); + return title + '$' + burl + }); + LISTS.push(d) + i = i + 1; + } + }); + `, + }, + 搜索: '*', +} \ No newline at end of file