From 7be640282ec55179238bebabfe153bbc5171f50e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8E=AB=E5=90=8D=E7=9A=84=E6=82=B2=E4=BC=A4?= <598500782@qq.com> Date: Thu, 9 May 2024 23:38:21 +0800 Subject: [PATCH] 1 --- JS/js/电影港.js | 212 ++++++++++++++++++++++++++++++++++++++++++++++++ tvbox2.json | 206 +++++++++++++++++++++++++++++++++------------- 2 files changed, 363 insertions(+), 55 deletions(-) create mode 100644 JS/js/电影港.js diff --git a/JS/js/电影港.js b/JS/js/电影港.js new file mode 100644 index 0000000..580290a --- /dev/null +++ b/JS/js/电影港.js @@ -0,0 +1,212 @@ +var rule = { + title:'电影港[磁]', + 编码:'gb2312', + 搜索编码:'gb2312', + host:'https://www.dygang.tv', + homeUrl:'/', + url: '/fyclass/index_fypage.htm?', + filter_url:'{{fl.class}}', + filter:{ + }, + searchUrl: '/e/search/index123.php#tempid=1&tbname=article&keyborad=**&show=title%2Csmalltext&Submit=%CB%D1%CB%F7;post', + searchable:2, + quickSearch:0, + filterable:0, + headers:{ + 'User-Agent': 'MOBILE_UA', + 'Referer': 'https://www.dygang.tv/' + }, + timeout:5000, + class_name:'最新电影&经典高清&国配电影&经典港片&国剧&日韩剧&美剧&综艺&动漫&纪录片&高清原盘&4K高清区&3D电影&电影专题', + class_url:'ys&bd&gy&gp&dsj&dsj1&yx&zy&dmq&jilupian&1080p&4K&3d&dyzt', + play_parse:true, + play_json:[{ + re:'*', + json:{ + parse:0, + jx:0 + } + }], + lazy:'', + limit:6, + 推荐:'div#tl tr:has(>td>table.border1>tbody>tr>td>a>img);table.border1 img&&alt;table.border1 img&&src;table:eq(2)&&Text;a&&href', + 一级:`js: + pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd; + let d = []; + let turl = (MY_PAGE === 1)? '/' : '/index_'+ MY_PAGE + '.htm'; + input = rule.homeUrl + MY_CATE + turl; + let html = request(input); + let list = pdfa(html, 'tr:has(>td>table.border1)'); + list.forEach(it => { + let title = pdfh(it, 'table.border1 img&&alt'); + if (title!==""){ + d.push({ + title: title, + desc: pdfh(it, 'table:eq(1)&&Text'), + pic_url: pd(it, 'table.border1 img&&src', HOST), + url: pdfh(it, 'a&&href') + }); + } + }) + setResult(d); + `, + 二级:{ + title:"div.title a&&Text", + img:"#dede_content img&&src", + desc:"#dede_content&&Text", + content:"#dede_content&&Text", + tabs:`js: +pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd; +TABS=[] +let d = pdfa(html, '#dede_content table tbody tr'); +let tabsa = []; +let tabsq = []; +let tabsm = false; +let tabse = false; +let tabm3u8 = []; +d.forEach(function(it) { + let burl = pd(it, 'a&&href',HOST); + if (burl.startsWith("https://www.aliyundrive.com/s/") || burl.startsWith("https://www.alipan.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 (false){ +d = pdfa(html, 'div:has(>div#post_content) div.widget:has(>h3)'); +d.forEach(function(it) { + tabm3u8.push(pdfh(it, 'h3&&Text')); +}); +} +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; +}); +tabm3u8.forEach(function(it){ + TABS.push(it); +}); +log('dygang TABS >>>>>>>>>>>>>>>>>>' + TABS); +`, + lists:`js: +log(TABS); +pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd; +LISTS = []; +let d = pdfa(html, '#dede_content table tbody tr'); +let lista = []; +let listq = []; +let listm = []; +let liste = []; +let listm3u8 = {}; +d.forEach(function(it){ + let burl = pd(it, 'a&&href',HOST); + let title = pdfh(it, 'a&&Text'); + log('dygang title >>>>>>>>>>>>>>>>>>>>>>>>>>' + title); + log('dygang burl >>>>>>>>>>>>>>>>>>>>>>>>>>' + burl); + let loopresult = title + '$' + burl; + if (burl.startsWith("https://www.aliyundrive.com/s/") || burl.startsWith("https://www.alipan.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); +} +lista.forEach(function(it){ + LISTS.push([it]); +}); +listq.forEach(function(it){ + LISTS.push([it]); +}); +for ( const key in listm3u8 ){ + if (listm3u8.hasOwnProperty(key)){ + LISTS.push(listm3u8[key]); + } +}; +`, + + }, + 搜索:`js: +pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd; +let params = 'tempid=1&tbname=article&keyboard=' + KEY + '&show=title%2Csmalltext&Submit=%CB%D1%CB%F7'; +let _fetch_params = JSON.parse(JSON.stringify(rule_fetch_params)); +let postData = { + method: "POST", + body: params +}; +delete(_fetch_params.headers['Content-Type']); +Object.assign(_fetch_params, postData); +log("dygang search postData>>>>>>>>>>>>>>>" + JSON.stringify(_fetch_params)); +let search_html = request( HOST + '/e/search/index123.php', _fetch_params, true); +//log("dygang search result>>>>>>>>>>>>>>>" + search_html); +let d=[]; +let dlist = pdfa(search_html, 'table.border1'); +dlist.forEach(function(it){ + let title = pdfh(it, 'img&&alt'); + if (searchObj.quick === true){ + if (false && title.includes(KEY)){ + title = KEY; + } + } + let img = pd(it, 'img&&src', HOST); + let content = pdfh(it, 'img&&alt'); + let desc = pdfh(it, 'img&&alt'); + let url = pd(it, 'a&&href', HOST); + d.push({ + title:title, + img:img, + content:content, + desc:desc, + url:url + }) +}); +setResult(d); +`, +} \ No newline at end of file diff --git a/tvbox2.json b/tvbox2.json index 51818b5..0682f76 100644 --- a/tvbox2.json +++ b/tvbox2.json @@ -70,13 +70,13 @@ "key": "厂长", "name": "厂长┃影视", "type": 3, - "api": "csp_Czsapp", + "api": "csp_NewCz", "timeout": 15, "playerType": 2, "searchable": 1, "quickSearch": 1, "changeable": 1, - "ext": "https://www.czzy.top/" + "ext": "https://czzy.top/" }, { "key": "文才影院", @@ -151,19 +151,15 @@ "ext": "https://ghproxy.net/https://raw.githubusercontent.com/Dong-learn9/TVBox-zyjk/main/JS/js/子子影视.js" }, { - "key": "csp_XYQHiker_‍dyx", - "name": "电影港┃HK", + "key": "drpy_js_电影港", + "name": "电影港┃[js]", "type": 3, - "api": "csp_XYQHiker", - "searchable": 1, - "quickSearch": 1, - "filterable": 1, - "jar": "./JAR/ym.jar;md5;33CB609D1D87B8F3703D92FF3590EF15", - "ext": "./XYQH/电影港.json" + "api": "./JS/lib/drpy2.min.js", + "ext": "https://ghproxy.net/https://raw.githubusercontent.com/Dong-learn9/TVBox-zyjk/main/JS/js/电影港.js" }, { "key": "白嫖", - "name": "高清┃影视", + "name": "白飘┃影视", "type": 3, "api": "csp_BaiPiao", "playerType": 2, @@ -233,7 +229,7 @@ "quickSearch": 1, "filterable": 1, "ext": { - "主页url": "https://www.padmp4.com/", + "主页url": "https://www.dbmp4.com/", "请求头": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36", "热门推荐": "1", "首页": "电视剧$10", @@ -245,7 +241,7 @@ "标题": "alt=\"《&&》\"", "链接": "href=\"&&\"", "副标题": "rate badge\">&&", - "搜索url": "https://www.padmp4.com/search/{wd}-{pg}.html", + "搜索url": "https://www.dbmp4.com/search/{wd}-{pg}.html", "搜索模式": "1", "搜索二次截取": "
&&
", "搜索数组": "
  • &&", @@ -270,7 +266,7 @@ "播放请求头": "", "免嗅": "0", "分类": "电视剧$10#动作片$1#科幻片$2#爱情片$3#喜剧片$4#恐怖片$5#战争片$6#剧情片$7#记录片$8#动漫$9", - "分类url": "https://www.padmp4.com/list/{cateId}-{catePg}.html" + "分类url": "https://www.dbmp4.com/list/{cateId}-{catePg}.html" } }, { @@ -320,47 +316,147 @@ "分类": "电影$movies#美剧$classify/meiju#国产剧$classify/guochan#韩剧$classify/hanju#番剧$classify/fanju" } }, -{ - "key": "小白", - "name": "小白磁┃XBPQ", - "type": 3, - "api": "csp_XBPQ", - "playerType": 1, - "jar": "./JAR/XBPQ1.jar;md5;bb155c3f0133bbce4756ad52003f5968", - "ext": { - "主页url": "https://www.xbw20.com/", - "编码": "gb2312", - "图片": "data-src=\"&&\"", - "标题": "alt=\"&&\"", - "副标题": "class=\"time\">&&&&
  • ", - "播放列表": "" - } - }, - { - "key": "haokongbu", - "name": "好恐怖┃XBPQ", - "type": 3, - "api": "csp_XBPQ", - "searchable": 1, - "quickSearch": 1, - "filterable": 1, - "ext": { - "主页url": "https://m.haokongbu.top/", - "分类url": "https://m.haokongbu.top/{cateId}/index_{catePg}.html[https://m.haokongbu.top/{cateId}/index.html]", - "分类": "国产剧$guochanju#港剧$gangju#动作片$dongzuopian#喜剧片$xijupian#爱情片$aiqingpian#科幻片$kehuanpian#恐怖片$kongbupian#战争片$zhanzhengpian#剧情片$juqingpian#微电影$weidianying#记录片$m_jlp#高清$gaoqing#动漫$donghuapian#台湾$taiwanju#日本$riju#韩国$hanju#欧美$oumeiju#泰国$taiguoju#海外$haiwaiju", - "副标题": "class=\"typeset\"&&", - "起始页": 2, - "倒序": 1, - "播放数组": "下载地址&&[不包含:网盘]", - "播放列表": "
    [包含:magnet]" - }, - "jar": "./JAR/XBPQ1.jar;md5;bb155c3f0133bbce4756ad52003f5968" - }, + { + "key": "小白", + "name": "小白┃XBPQ", + "type": 3, + "api": "csp_XBPQ", + "playerType": 1, + "jar": "./JAR/XBPQ1.jar;md5;bb155c3f0133bbce4756ad52003f5968", + "ext": { + "请求头": "手机", + "编码": "GB2312", + "副标题": "time\">&&", + "数组": "
  • &&
  • ", + "二次截取": "pic-list pic-list-focus fn-right&&", + "主页url": "https://www.xbw20.com/", + "分类url": "https://www.xbw20.com/vod/{cateId}{catePg}.html[https://www.xbw20.com/vod/{cateId}.html]", + "搜索url": "https://www.xbw20.com/search.asp?searchword={wd}", + "分类": "电影$newmovie#电视剧$newTV#4K专区$new4K#动画片$newcartoon", + "起始页": 2, + "倒序": 1, + "播放数组": "迅雷下载&&", + "播放列表": "
  • <&&", + "筛选": { + "newmovie": [ + { + "key": "cateId", + "name": "类型", + "value": [ + { + "n": "全部", + "v": "" + }, + { + "n": "科幻片", + "v": "newScience" + }, + { + "n": "动作片", + "v": "newaction" + }, + { + "n": "恐怖片", + "v": "newscary" + }, + { + "n": "喜剧片", + "v": "newcomedy" + }, + { + "n": "爱情片", + "v": "newromance" + }, + { + "n": "战争片", + "v": "newwar" + }, + { + "n": "剧情片", + "v": "newplot" + }, + { + "n": "记录片", + "v": "newrecord" + } + ] + } + ], + "newTV": [ + { + "key": "cateId", + "name": "分类", + "value": [ + { + "n": "分类", + "v": "" + }, + { + "n": "国产剧", + "v": "newmainland" + }, + { + "n": "港剧", + "v": "newtvb" + }, + { + "n": "台剧", + "v": "newtaiju" + }, + { + "n": "美剧", + "v": "newoumeiju" + }, + { + "n": "英剧", + "v": "newyingju" + }, + { + "n": "韩剧", + "v": "newkorea" + }, + { + "n": "日剧", + "v": "newriju" + }, + { + "n": "泰剧", + "v": "newAsia" + }, + { + "n": "印度剧", + "v": "newyinduju" + }, + { + "n": "新加坡剧", + "v": "newxinjiapo" + } + ] + } + ] + } + } + }, + { + "key": "haokongbu", + "name": "恐怖┃XBPQ", + "type": 3, + "api": "csp_XBPQ", + "searchable": 1, + "quickSearch": 1, + "filterable": 1, + "ext": { + "主页url": "https://m.haokongbu.top/", + "分类url": "https://m.haokongbu.top/{cateId}/index_{catePg}.html[https://m.haokongbu.top/{cateId}/index.html]", + "分类": "国产剧$guochanju#港剧$gangju#动作片$dongzuopian#喜剧片$xijupian#爱情片$aiqingpian#科幻片$kehuanpian#恐怖片$kongbupian#战争片$zhanzhengpian#剧情片$juqingpian#微电影$weidianying#记录片$m_jlp#高清$gaoqing#动漫$donghuapian#台湾$taiwanju#日本$riju#韩国$hanju#欧美$oumeiju#泰国$taiguoju#海外$haiwaiju", + "副标题": "class=\"typeset\"&&", + "起始页": 2, + "倒序": 1, + "播放数组": "下载地址&&[不包含:网盘]", + "播放列表": "
  • &&
  • [包含:magnet]" + }, + "jar": "./JAR/XBPQ1.jar;md5;bb155c3f0133bbce4756ad52003f5968" + }, { "key": "热播库", "name": "热播┃BPQ",