From db569f8bdaba0848f88836b3be18a54bea1e6934 Mon Sep 17 00:00:00 2001 From: alantang <107459091+alantang1977@users.noreply.github.com> Date: Sun, 13 Aug 2023 11:37:30 +0800 Subject: [PATCH] Add files via upload --- js/360.json | 364 +++++++++++++++++++++++++++++++++++++++++++++++++ js/小鸭.json | 113 +++++++++++++++ js/杳音.js | 125 +++++++++++++++++ js/极影网.js | 75 ++++++++++ js/电影港.json | 131 ++++++++++++++++++ js/磁力熊.js | 97 +++++++++++++ js/素白.json | 26 ++++ js/荐片.js | 48 +++++++ js/荐片.json | 37 +++++ 9 files changed, 1016 insertions(+) create mode 100644 js/360.json create mode 100644 js/小鸭.json create mode 100644 js/杳音.js create mode 100644 js/极影网.js create mode 100644 js/电影港.json create mode 100644 js/磁力熊.js create mode 100644 js/素白.json create mode 100644 js/荐片.js create mode 100644 js/荐片.json diff --git a/js/360.json b/js/360.json new file mode 100644 index 0000000..2c70dce --- /dev/null +++ b/js/360.json @@ -0,0 +1,364 @@ +{ + "作者": "菜妮丝https://cainisi.cf", + "站名": "360影视", + "主页url": "http://我不是.肥猫.love:63/cainisi//", + "请求头": "cainisi", + "强制解析": "1", + + "分类": "电影$1#电视剧$2#综艺$3#动漫$4", + + "分类url": "http://我不是.肥猫.love:63/cainisi/fl.php?id={cateId}&pg={catePg}&cat={class}&year={year}&area={area}&rank={by}&act={act}", + + "数组": "数组=&&=数组", + "图片": "图片=\"&&\"", + "标题": "标题=\"&&\"", + "链接": "链接=\"&&\"", + "副标题": "副标题=\"&&\"", + + "搜索模式": "1", + "搜索url": "ss.php?wd={wd}", + "搜索数组": "数组=&&=数组", + "搜索图片": "图片=\"&&\"", + "搜索标题": "标题=\"&&\"", + "搜索链接": "链接=\"&&\"", + "搜索副标题": "副标题=\"&&\"", + + "影片年代": "年份=\"&&\"", + "影片地区": "地区=\"&&\"", + "影片类型": "类型=\"&&\"", + "导演": "导演=\"&&\"", + "主演": "主演=\"&&\"", + "简介": "简介=\"&&\"", + + "线路数组": "线路数组=&&=线路数组", + "线路标题": "线路标题=\"&&\"", + + "播放数组": "播放数组=&&=播放数组", + "播放列表": "播放列表=&&=播放列表", + "播放标题": "播放标题=\"&&\"", + "播放链接": "播放链接=\"&&\"", + + "筛选":{ +"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":"文艺"}, + {"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":"其他"}]}, + + {"key":"act","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":"汤唯"}, + {"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":"2010","v":"2010"}, + {"n":"2009","v":"2009"}, + {"n":"2008","v":"2008"}, + {"n":"2007","v":"2007"}, + {"n":"更早","v":"lt_year"}]}, + + {"key":"by","name":"排序","value":[ + {"n":"最近热映","v":"rankhot"}, + {"n":"最近上映","v":"ranklatest"}, + {"n":"最受好评","v":"rankpoint"}]}], + +"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":"青春剧"}, + {"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":"新加坡"}]}, + + {"key":"act","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":"雷佳音"}, + {"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":"2010","v":"2010"}, + {"n":"2009","v":"2009"}, + {"n":"2008","v":"2008"}, + {"n":"2007","v":"2007"}, + {"n":"更早","v":"lt_year"}]}, + + {"key":"by","name":"排序","value":[ + {"n":"最近热映","v":"rankhot"}, + {"n":"最近上映","v":"ranklatest"}, + {"n":"最受好评","v":"rankpoint"}]}], + +"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":"歌舞"}, + {"n":"财经","v":"财经"}, + {"n":"汽车","v":"汽车"}, + {"n":"播报","v":"播报"}, + {"n":"其他","v":"其他"}]}, + + {"key":"area","name":"地区","value":[ + {"n":"全部","v":""}, + {"n":"内地","v":"大陆"}, + {"n":"中国香港","v":"香港"}, + {"n":"中国台湾","v":"台湾"}, + {"n":"日本","v":"日本"}, + {"n":"欧美","v":"欧美"}]}, + + {"key":"act","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":"Angelababy","v":"Angelababy"}, + {"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":"by","name":"排序","value":[ + {"n":"最近热映","v":"rankhot"}, + {"n":"最近上映","v":"ranklatest"}]}], + +"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":"搞笑"}, + {"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":"真人版"}, + {"n":"电影版","v":"电影版"}, + {"n":"OVA版","v":"OVA版"}]}, + + {"key":"area","name":"地区","value":[ + {"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"}, + {"n":"更早","v":"更早"}]}, + + {"key":"by","name":"排序","value":[ + {"n":"最近热映","v":"rankhot"}, + {"n":"最近上映","v":"ranklatest"}]}]} +} \ No newline at end of file diff --git a/js/小鸭.json b/js/小鸭.json new file mode 100644 index 0000000..bad6a23 --- /dev/null +++ b/js/小鸭.json @@ -0,0 +1,113 @@ +/*[{ +"name": "小鸭", +"server": "http://shicheng.wang:555/", +"startPage": "/", +"showAll": false, +"search": true, +"params": { +"/abc": { +"password": "123" +}, +"/abc/abc": { +"password": "123" +} +} +}, +{ +"name": "小猫", +"server": "https://nics.eu.org", +"startPage": "/SP1", +"showAll": false, +"search": true, +"params": { +"/abc": { +"password": "123" +}, +"/abc/abc": { +"password": "123" +} +} +}, +{ +"name": "小狗电影", +"server": "https://alist.ccome.site", +"startPage": "/电影", +"showAll": false, +"search": true, +"params": { +"/abc": { +"password": "123" +}, +"/abc/abc": { +"password": "123" +} +} +}, +{ +"name": "小鸟剧集", +"server": "https://alist.ccome.site", +"startPage": "/电视剧1", +"showAll": false, +"search": true, +"params": { +"/abc": { +"password": "123" +}, +"/abc/abc": { +"password": "123" +} +} +}, +{ +"name": "小象动漫", +"server": "https://alist.ccome.site", +"startPage": "/动漫", +"showAll": false, +"search": true, +"params": { +"/abc": { +"password": "123" +}, +"/abc/abc": { +"password": "123" +} +} +} +]*/ +{ + "vodPic": "https://s1.ax1x.com/2023/05/04/p9tgI81.png", + "drives": [ + { + "name": "🦆鸭鸭", + "server": "http://shicheng.wang:555/" + }, + { + "name": "NICS", + "server": "https://nics.eu.org" + }, + { + "name": "ECVE", + "server": "https://pan.ecve.cn" + }, + { + "name": "觸光", + "server": "https://pan.ichuguang.com" + }, + { + "name": "一只魚", + "server": "https://vtok.pp.ua/" + }, + { + "name": "七米藍", + "server": "https://al.chirmyram.com" + }, + { + "name": "神族九帝", + "server": "https://alist.shenzjd.com" + }, + { + "name": "梓澪", + "server": "https://zi0.cc" + } + ] +} \ No newline at end of file diff --git a/js/杳音.js b/js/杳音.js new file mode 100644 index 0000000..01ddada --- /dev/null +++ b/js/杳音.js @@ -0,0 +1,125 @@ +var lists = `js: +log(TABS); +let d = []; +pdfh = jsp.pdfh; +pdfa = jsp.pdfa; +if (typeof play_url === "undefined") { + var play_url = "" +} +function getLists(html) { + let src = pdfh(html, ".wp-playlist-script&&Html"); + src = JSON.parse(src).tracks; + let list1 = []; + let url = ""; + src.forEach(function(it) { + let srctype = it.srctype; + let src0 = it.src0; + let src1 = it.src1; + let src2 = it.src2; + let src3 = it.src3; + let title = it.caption; + if (srctype === "1") { + url = "https://ddys.pro/getvddr2/video?id=" + src1 + "&type=mix" + } else if (srctype === "4") { + url = "https://v.ddys.zip" + src3 + } + let zm = "https://ddys.pro/subddr/" + it.subsrc; + list1.push({ + title: title, + url: url, + desc: zm + }) + }); + return { + list1: list1 + } +} +var data = getLists(html); +var list1 = data.list1; +let nums = pdfa(html, "body&&.post-page-numbers"); +nums.forEach(function(it) { + let num = pdfh(it, "body&&Text"); + log(num); + let nurl = input + num + "/"; + if (num == 1) { + return + } + log(nurl); + let html = request(nurl); + let data = getLists(html); + list1 = list1.concat(data.list1) +}); +list1 = list1.map(function(item) { + return item.title + "$" + play_url + urlencode(item.url + "|" + input + "|" + item.desc) +}); +LISTS = [list1]; +`; + +var lazy = `js: +let purl = input.split("|")[0]; +let referer = input.split("|")[1]; +let zm = input.split("|")[2]; +print("purl:" + purl); +print("referer:" + referer); +print("zm:" + zm); +if (/getvddr/.test(purl)) { + let html = request(purl, { + headers: { + Referer: HOST, + "User-Agent": MOBILE_UA + } + }); + print(html); + try { + input = {jx:0,url:JSON.parse(html).url,parse:0} || {} + } catch (e) { + input = purl + } +} else { + input = { + jx: 0, + url: purl, + parse: 0, + header: JSON.stringify({ + 'user-agent': MOBILE_UA, + 'referer': HOST + }) + } +} +`; + +// 网址发布页 https://ddys.site +var rule={ + title:'ddys', + host:'https://ddys.site', + hostJs:'print(HOST);let html=request(HOST,{headers:{"User-Agent":MOBILE_UA}});HOST = jsp.pdfh(html,"a:eq(1)&&href")', + url:'/fyclass/page/fypage/', + searchUrl:'/?s=**&post_type=post', + searchable:2, + quickSearch:0, + filterable:0, + headers:{ + 'User-Agent':'MOBILE_UA', + }, + class_parse:'#primary-menu li.menu-item;a&&Text;a&&href;\.pro/(.*)', + cate_exclude:'站长|^其他$|关于|^电影$|^剧集$|^类型$', + play_parse:true, + // lazy:'js:let purl=input.split("|")[0];let referer=input.split("|")[1];let zm=input.split("|")[2];print("purl:"+purl);print("referer:"+referer);print("zm:"+zm);let myua="okhttp/3.15";if(/ddrkey/.test(purl)){let ret=request(purl,{Referer:referer,withHeaders:true,"User-Agent":myua});log(ret);input=purl}else{let html=request(purl,{headers:{Referer:referer,"User-Agent":myua}});print(html);try{input=JSON.parse(html).url||{}}catch(e){input=purl}}', + lazy:lazy, + limit:6, + 推荐:'*', + double:true, // 推荐内容是否双层定位 + 一级:'.post-box-list&&article;a:eq(-1)&&Text;.post-box-image&&style;a:eq(0)&&Text;a:eq(-1)&&href', + 二级:{ + "title":".post-title&&Text;.cat-links&&Text", + "img":".doulist-item&&img&&data-cfsrc", + "desc":".published&&Text", + "content":".abstract&&Text", + // "tabs":"js:TABS=['国内','海外(貌似不能播放)']", + "tabs":"js:TABS=['国内']", + // "lists":"js:log(TABS);let d=[];pdfh=jsp.pdfh;pdfa=jsp.pdfa;if(typeof play_url===\"undefined\"){var play_url=\"\"}function getLists(html){let src=pdfh(html,\".wp-playlist-script&&Html\");src=JSON.parse(src).tracks;let list1=[];let list2=[];src.forEach(function(it){let src0=it.src0;let src1=it.src1;let src2=it.src2;let title=it.caption;let url1=\"https://ddys.tv/getvddr/video?id=\"+src1+\"&dim=1080P+&type=mix\";let url2=\"https://w.ddys.tv\"+src0+\"?ddrkey=\"+src2;let zm=\"https://ddys.tv/subddr/\"+it.subsrc;list1.push({title:title,url:url1,desc:zm});list2.push({title:title,url:url2,desc:zm})});return{list1:list1,list2:list2}}var data=getLists(html);var list1=data.list1;var list2=data.list2;let nums=pdfa(html,\"body&&.post-page-numbers\");nums.forEach(function(it){let num=pdfh(it,\"body&&Text\");log(num);let nurl=input+num+\"/\";if(num==1){return}log(nurl);let html=request(nurl);let data=getLists(html);list1=list1.concat(data.list1);list2=list2.concat(data.list2)});list1=list1.map(function(item){return item.title+\"$\"+play_url+urlencode(item.url+\"|\"+input+\"|\"+item.desc)});list2=list2.map(function(item){return item.title+\"$\"+play_url+urlencode(item.url+\"|\"+input+\"|\"+item.desc)});LISTS=[list1,list2];", + // lists:'js:log(TABS);let d=[];pdfh=jsp.pdfh;pdfa=jsp.pdfa;if(typeof play_url==="undefined"){var play_url=""}function getLists(html){let src=pdfh(html,".wp-playlist-script&&Html");src=JSON.parse(src).tracks;let list1=[];let list2=[];src.forEach(function(it){let src0=it.src0;let src1=it.src1;let src2=it.src2;let title=it.caption;let url1="https://ddys.pro/getvddr/video?id="+src1+"&dim=1080P+&type=mix";let url2="https://w.ddys.pro"+src0+"?ddrkey="+src2;let zm="https://ddys.pro/subddr/"+it.subsrc;list1.push({title:title,url:url1,desc:zm});list2.push({title:title,url:url2,desc:zm})});return{list1:list1,list2:list2}}var data=getLists(html);var list1=data.list1;var list2=data.list2;let nums=pdfa(html,"body&&.post-page-numbers");nums.forEach(function(it){let num=pdfh(it,"body&&Text");log(num);let nurl=input+num+"/";if(num==1){return}log(nurl);let html=request(nurl);let data=getLists(html);list1=list1.concat(data.list1);list2=list2.concat(data.list2)});list1=list1.map(function(item){return item.title+"$"+play_url+urlencode(item.url+"|"+input+"|"+item.desc)});list2=list2.map(function(item){return item.title+"$"+play_url+urlencode(item.url+"|"+input+"|"+item.desc)});LISTS=[list1,list2];', + "lists":lists + }, + 搜索:'#main&&article;.post-title&&Text;;.published&&Text;a&&href' +} \ No newline at end of file diff --git a/js/极影网.js b/js/极影网.js new file mode 100644 index 0000000..5c720d4 --- /dev/null +++ b/js/极影网.js @@ -0,0 +1,75 @@ +var rule = { + title:'极影网[磁]', + host:'http://jiyingw.net', + homeUrl:'/', + url: '/fyclass/page/fypage?', + filter_url:'{{fl.class}}', + filter:{ + "movie":[{"key":"class","name":"标签","value":[{"n":"全部","v":"movie"},{"n":"4k","v":"tag/4k"}, {"n":"人性","v":"tag/人性"}, {"n":"传记","v":"tag/chuanji"}, {"n":"儿童","v":"tag/儿童"}, {"n":"冒险","v":"tag/adventure"}, {"n":"剧情","v":"tag/剧情"}, {"n":"加拿大","v":"tag/加拿大"}, {"n":"动作","v":"tag/dongzuo"}, {"n":"动漫","v":"tag/动漫"}, {"n":"励志","v":"tag/励志"}, {"n":"历史","v":"tag/history"}, {"n":"古装","v":"tag/古装"}, {"n":"同性","v":"tag/gay"}, {"n":"喜剧","v":"tag/comedy"}, {"n":"国剧","v":"tag/国剧"}, {"n":"奇幻","v":"tag/qihuan"}, {"n":"女性","v":"tag/女性"}, {"n":"家庭","v":"tag/family"}, {"n":"德国","v":"tag/德国"}, {"n":"恐怖","v":"tag/kongbu"}, {"n":"悬疑","v":"tag/xuanyi"}, {"n":"惊悚","v":"tag/jingsong"}, {"n":"意大利","v":"tag/意大利"}, {"n":"战争","v":"tag/zhanzheng"}, {"n":"战斗","v":"tag/战斗"}, {"n":"搞笑","v":"tag/搞笑"}, {"n":"故事","v":"tag/故事"}, {"n":"文艺","v":"tag/文艺"}, {"n":"日常","v":"tag/日常"}, {"n":"日本","v":"tag/日本"}, {"n":"日语","v":"tag/日语"}, {"n":"校园","v":"tag/校园"}, {"n":"武侠","v":"tag/wuxia"}, {"n":"法国","v":"tag/法国"}, {"n":"游戏","v":"tag/游戏"}, {"n":"灾难","v":"tag/zainan"}, {"n":"爱情","v":"tag/爱情"}, {"n":"犯罪","v":"tag/crime"}, {"n":"真人秀","v":"tag/zhenrenxiu"}, {"n":"短片","v":"tag/duanpian"}, {"n":"科幻","v":"tag/kehuan"}, {"n":"纪录","v":"tag/jilu"}, {"n":"美剧","v":"tag/meiju"}, {"n":"舞台","v":"tag/stage"}, {"n":"西部","v":"tag/xibu"}, {"n":"运动","v":"tag/yundong"}, {"n":"韩剧","v":"tag/韩剧"}, {"n":"韩国","v":"tag/韩国"}, {"n":"音乐","v":"tag/yinyue"}, {"n":"高清电影","v":"tag/高清电影"}]}] + }, + searchUrl: '/?s=**', + searchable:2, + quickSearch:1, + filterable:1, + headers:{ + 'User-Agent': 'PC_UA' + }, + timeout:5000, + class_name:'电影&电视剧&动漫&综艺&影评', + class_url:'movie&tv&cartoon&movie/variety&yingping', + play_parse:false, + lazy:'', + limit:6, + 推荐:'ul#post_container li;a&&title;img&&src;.article entry_post&&Text;a&&href', + 一级:'ul#post_container li;a&&title;img&&src;.article entry_post&&Text;a&&href', + 二级:{ + title:"h1&&Text", + img:"#post_content img&&src", + desc:"#post_content&&Text", + content:".movie-introduce&&Text", + tabs:`js: + pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd; + TABS=[] + var d = pdfa(html, '#down&&a'); + var index=0; + d.forEach(function(it) { + let burl = pdfh(it, 'a&&href'); + log("burl >>>>>>" + burl); + if (burl.startsWith("magnet")){ + let result = 'magnet' + index; + index = index + 1; + TABS.push(result); + } + }); + log('TABS >>>>>>>>>>>>>>>>>>' + TABS); + `, + lists:`js: + log(TABS); + pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd; + LISTS = []; + var d = pdfa(html, '#down&&a'); + TABS.forEach(function(tab) { + log('tab >>>>>>>>' + tab); + if (/^magnet/.test(tab)) { + let targetindex = parseInt(tab.substring(6)); + let index = 0; + d.forEach(function(it){ + let burl = pdfh(it, 'a&&href'); + if (burl.startsWith("magnet")){ + if (index == targetindex){ + let title = pdfh(it, 'a&&Text'); + log('title >>>>>>>>>>>>>>>>>>>>>>>>>>' + title); + log('burl >>>>>>>>>>>>>>>>>>>>>>>>>>' + burl); + let loopresult = title + '$' + burl; + LISTS.push([loopresult]); + } + index = index + 1; + } + }); + } + }); + `, + + }, + 搜索:'#post_container li.post;a.zoom&&title;a.zoom img&&src;.info&&Text;a&&href;.article&&Text', +} \ No newline at end of file diff --git a/js/电影港.json b/js/电影港.json new file mode 100644 index 0000000..85fda74 --- /dev/null +++ b/js/电影港.json @@ -0,0 +1,131 @@ +//写法思路来海阔视界,xpath筛选。本人是海阔用户,所以搬了海阔的jsoup写法过来。2022年9月17日 +//jsoup规则写法请查阅海阔视界或者海阔影视相关教程。不支持js写法 +//本文档为完整模板,请不要去无中生有添加多余的键值参数。 +{ + //规则名 + "title": "电影港", + //作者 + "author": "香雅情", + //请求头UA,键名$键值,每一组用#分开,不填则默认okhttp/3.12.11,可填MOBILE_UA或PC_UA使用内置的手机版或电脑版UA + //多个请求头参数写法示例,"User-Agent$PC_UA#Referer$http://ww.baidu.com#Cookie$ser=ok",每一组用#分开。 + //习惯查看手机源码写建议用手机版UA,习惯查看PC版源码写建议用电脑版UA + "Headers":"PC_UA", + //网页编码格式默认UTF-8编码,UTF-8,GBK,GB2312 + "Coding_format":"gb2312", + //图片是否需要代理 + "PicNeedProxy":"0", + //是否开启获取首页数据,0关闭,1开启 + "homeContent":"0", + //分类链接起始页码,禁止负数和含小数点。 + "firstpage": "1", + //分类链接,{cateId}是分类,{catePg}是页码,第一页没有页码的可以这样写 第二页链接[firstPage=第一页的链接] + "class_url": "https://www.dygang.tv/{cateId}/index_{catePg}.htm[firstPage=https://www.dygang.cc/{cateId}/index.htm]", + //分类名,分类1&分类2&分类3 + "class_name": "最新电影&经典高清&国配电影&经典港片&国剧&日韩剧&美剧&综艺&动漫&纪录片&高清原盘&4K高清区&3D电影&电影专题", + //分类名替换词,替换词1&替换词2&替换词3,替换词包含英文&的用两个中文&&代替,示例:&&id=0&&&id=1 + "class_value": "ys&bd&gy&gp&dsj&dsj1&yx&zy&dmq&jilupian&1080p&4K&3d&dyzt", + //筛选数据,json格式,参考xpath的筛选写法 + "filterdata":{}, + + //分类页面截取数据模式,0为json,其它数字为普通网页。 + "cat_mode": "1", + //分类列表数组定位,最多支持3层,能力有限,不是所有页面都能支持 + "cat_arr_rule": "body&&table[width=388]", + //分类片单信息jsoup与xb截取写法切换,只作用于html网页,1为jsoup写法(默认),0为xb写法 + "cat_is_jsoup":"1", + //分类片单标题 + "cat_title": "img&&alt", + //分类片单链接 + "cat_url": "a&&href", + //分类片单图片,支持自定义图片链接 + "cat_pic": "img&&src", + //分类片单副标题 + "cat_subtitle":"[align=center]&&Text", + //分类片单链接补前缀 + "cat_prefix": "https://www.dygang.tv", + //分类片单链接补后缀 + "cat_suffix": "", + + //搜索请求头参数,不填则默认okhttp/3.12.11,可填MOBILE_UA或PC_UA使用内置的手机版或电脑版UA + //多个请求头参数写法示例,键名$键值,每一组用#分开。"User-Agent$PC_UA#Referer$http://ww.baidu.com#Cookie$ser=ok"。 + "SHeaders":"User-Agent$PC_UA#Content-Type$charset=gb2312", + //搜索链接,搜索关键字用{wd}表示,post请求的最后面加;post + //POST链接示例 http://www.lezhutv.com/index.php?m=vod-search;post + "search_url": "https://www.dygang.tv/e/search/index123.php;post", + //POST搜索body,填写搜索关键字的键值,一般常见的是searchword和wd,不是POST搜索的可留空或删除。 + "sea_PtBody":"keyboard={wd}&submit=搜+索&show=title,smalltext&tempid=1&tbname=article", + + //搜索截取模式,0为json搜索,只支持列表在list数组里的,其它数字为网页截取。 + "search_mode": "1", + //搜索列表数组定位,不填默认内置list,最多支持3层,能力有限,不是所有页面都能支持。 + "sea_arr_rule": "body&&table[width=388]", + //搜索片单信息jsoup与xb截取写法切换,只作用于html网页,1为jsoup写法(默认),0为xb写法 + "sea_is_jsoup":"1", + //搜索片单图片,支持自定义图片链接 + "sea_pic": "img&&src", + //搜索片单标题 + "sea_title": "img&&alt", + //搜索片单链接 + "sea_url": "a&&href", + //搜索片单副标题 + "sea_subtitle":"", + //搜索片单链接补前缀 + "search_prefix": "https://www.dygang.tv", + //搜索片单链接补后缀,这个一般json搜索的需要 + "search_suffix": "", + + //片单链接是否直接播放,0否,1分类片单链接直接播放,2详情选集链接直接播放。 + //设置成直接播放后,后面3个参数请注意该留空的请务必留空。 + "force_play": "0", + //直接播放链接补前缀 + "play_prefix": "", + //直接播放链接补后缀,设置为#isVideo=true#可强制识别为视频链接 + "play_suffix": "", + //直接播放链接设置请求头,只对直链视频有效,每一组用#分开 + "play_header": "", + + //项目信息jsoup与xb截取写法切换,1为jsoup写法(默认),0为xb写法 + "proj_is_jsoup":"0", + //类型数据,截取前缀&&截取后缀 + "proj_cate": "", + //年代数据,截取前缀&&截取后缀 + "proj_year": "", + //地区数据,截取前缀&&截取后缀 + "proj_area": "", + //演员数据,截取前缀&&截取后缀 + "proj_actor": "演  员&&var player_aaaa={"flag":"play","encrypt这种源码的链接解析 + //如果网页源码里没有这种请设置为0 + "Anal_MacPlayer":"0", + //是否开启手动嗅探,只对网页嗅探有效,0否,1是 + "ManualSniffer":"0", + //手动嗅探视频链接关键字,每个用#隔开 + "VideoFormat":".mp4#.m3u8#.flv", + //手动嗅探视频链接过滤关键词,每个用#隔开 + "VideoFilter":".html#=http" +} \ No newline at end of file diff --git a/js/磁力熊.js b/js/磁力熊.js new file mode 100644 index 0000000..8a9dc2d --- /dev/null +++ b/js/磁力熊.js @@ -0,0 +1,97 @@ +var rule = { + title:'磁力熊[磁]', + host:'https://www.cilixiong.com', + homeUrl:'/top250/index.html', + // url: '/fyclass/index_(fypage-1).html', + url: '/fyclassfyfilter-(fypage-1).html', + filter_url:'-{{fl.class or "0"}}-{{fl.area or "0"}}', + filter:{ + "1":[{"key":"class","name":"类型","value":[{"n":"全部","v":"0"},{"n":"剧情","v":"1"},{"n":"喜剧","v":"2"},{"n":"惊悚","v":"3"},{"n":"动作","v":"4"},{"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"},{"n":"战争","v":"14"},{"n":"历史","v":"15"},{"n":"传记","v":"16"},{"n":"音乐","v":"17"},{"n":"歌舞","v":"18"},{"n":"运动","v":"19"},{"n":"西部","v":"20"},{"n":"灾难","v":"21"},{"n":"古装","v":"22"},{"n":"情色","v":"23"},{"n":"同性","v":"24"},{"n":"儿童","v":"25"},{"n":"纪录片","v":"26"}]},{"key":"area","name":"地区","value":[{"n":"全部","v":"0"},{"n":"大陆","v":"1"},{"n":"香港","v":"2"},{"n":"台湾","v":"3"},{"n":"美国","v":"4"},{"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"},{"n":"巴西","v":"14"},{"n":"加拿大","v":"15"},{"n":"俄罗斯","v":"16"},{"n":"意大利","v":"17"},{"n":"比利时","v":"18"},{"n":"爱尔兰","v":"19"},{"n":"西班牙","v":"20"},{"n":"澳大利亚","v":"21"},{"n":"波兰","v":"22"},{"n":"土耳其","v":"23"},{"n":"越南","v":"24"}]}], + "2":[{"key":"class","name":"类型","value":[{"n":"全部","v":"0"},{"n":"剧情","v":"1"},{"n":"喜剧","v":"2"},{"n":"惊悚","v":"3"},{"n":"动作","v":"4"},{"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"},{"n":"战争","v":"14"},{"n":"历史","v":"15"},{"n":"传记","v":"16"},{"n":"音乐","v":"17"},{"n":"歌舞","v":"18"},{"n":"运动","v":"19"},{"n":"西部","v":"20"},{"n":"灾难","v":"21"},{"n":"古装","v":"22"},{"n":"情色","v":"23"},{"n":"同性","v":"24"},{"n":"儿童","v":"25"},{"n":"纪录片","v":"26"}]},{"key":"area","name":"地区","value":[{"n":"全部","v":"0"},{"n":"大陆","v":"1"},{"n":"香港","v":"2"},{"n":"台湾","v":"3"},{"n":"美国","v":"4"},{"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"},{"n":"巴西","v":"14"},{"n":"加拿大","v":"15"},{"n":"俄罗斯","v":"16"},{"n":"意大利","v":"17"},{"n":"比利时","v":"18"},{"n":"爱尔兰","v":"19"},{"n":"西班牙","v":"20"},{"n":"澳大利亚","v":"21"},{"n":"波兰","v":"22"},{"n":"土耳其","v":"23"},{"n":"越南","v":"24"}]}] + }, + searchUrl: '/e/search/index.php#classid=1,2&show=title&tempid=1&keyboard=**;post', + searchable:2, + quickSearch:0, + filterable:1, + headers:{ + 'User-Agent': 'MOBILE_UA' + }, + timeout:5000, + class_name:'电影&剧集', + class_url:'1&2', + play_parse:true, + lazy:'', + limit:6, + 推荐: `js: + pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd; + var d = []; + var html = request(input); + var list = pdfa(html, 'body&&.col'); + list.forEach(it => { + d.push({ + title: pdfh(it, 'h2&&Text'), + desc: pdfh(it, '.me-auto&&Text') + '分 / ' + pdfh(it, '.small&&Text'), + // pic_url: pd(it, '.card-img&&style'), + pic_url: /!'/.test(pd(it, '.card-img&&style'))?pd(it, '.card-img&&style'):pd(it, '.card-img&&style').replaceAll("'",""), + url: pd(it, 'a&&href') + }); + }) + setResult(d); + `, + 一级: `js: + pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd; + var d = []; + var html = request(input); + var list = pdfa(html, 'body&&.col'); + list.forEach(it => { + d.push({ + title: pdfh(it, 'h2&&Text'), + desc: pdfh(it, '.me-auto&&Text') + '分 / ' + pdfh(it, '.small&&Text'), + // pic_url: pdfh(it, '.card-img&&style'), + pic_url: /!'/.test(pd(it, '.card-img&&style'))?pd(it, '.card-img&&style'):pd(it, '.card-img&&style').replaceAll("'",""), + url: pd(it, 'a&&href') + }); + }) + setResult(d); + `, + 二级:{ + title:'h1&&Text;p.mb-2:eq(4)&&Text', + desc:'p.mb-2:eq(1)&&Text;;;p.mb-2:eq(7)&&Text;p.mb-2:eq(5)&&Text', + img:'.rounded-2&&src', + content:'.mv_card_box&&Text', + // tabs:'js:TABS = ["道长磁力"]', + // lists:'.mv_down:eq(#id)&&.border-bottom', + // list_text:'a&&Text', + // list_url:'a&&href', + + tabs:'js:TABS = ["道长磁力","道长在线预览"]', + lists:`js: + log(TABS); + pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd; + LISTS = []; + var dd=[]; + TABS.forEach(function(tab) { + if (/道长磁力/.test(tab)) { + var d = pdfa(html, '.mv_down&&.border-bottom'); + d = d.map(function(it) { + var title = pdfh(it, 'a&&Text'); + log('title >>>>>>>>>>>>>>>>>>>>>>>>>>' + title); + var burl = pd(it, 'a&&href'); + log('burl >>>>>>>>>>>>>>>>>>>>>>>>>>' + burl); + return title + '$' + burl + }); + LISTS.push(d) + } else if (/道长在线预览/.test(tab)) { + var d = pd(html, 'iframe&&src'); + if (d) { + d=['第一集在线播放预览$' + d] + } else { + d=['没有预览不要点$http://www.sharenice.net/douyin/23852'] + } + LISTS.push(d) + } + }); + `, + }, + 搜索:'.col;h2&&Text;.card-img&&style;.me-auto&&Text;a&&href', +} \ No newline at end of file diff --git a/js/素白.json b/js/素白.json new file mode 100644 index 0000000..17db55c --- /dev/null +++ b/js/素白.json @@ -0,0 +1,26 @@ +{ + + "站名": "素白白影视", + "主页url": "https://www.subaibaiys.com", + "请求头":"Referer$https://www.subaibaiys.com/", + "分类": "电影&电视剧&热门电影&高分电影&动漫电影&香港经典电影&国产剧&欧美剧&韩剧&动漫剧", + "分类值": "new-movie&tv-drama&hot-month&high-movie&cartoon-movie&hongkong-movie&domestic-drama&american-drama&korean-drama&anime-drama", + "分类url": "https://www.subaibaiys.com/{cateId}/page/{catePg};;aks2", + "数组": "
  • &&
  • ", + "副标题": "class=\"jidi\">&&", + "搜索模式": "1", + "搜索url": "https://www.subaibaiys.com/search?q={wd}", + "影片年代": "年份:&&", + "影片地区": "地区:&&", + "影片类型": "类型:&&", + "导演": "导演:&&", + "主演": "主演:&&", + "嗅探词":".m3u8#.mp4#/m3/", + "简介": "yp_context\">&&

    ", + "线路数组": "mi_paly_box\">&&", + "线路标题": "ypxingq_t\">&&[替换:在线播放>>素白线路]", + "播放数组": "
    &&
    ", + "播放列表": "", + "播放标题": ">&&<[替换:立即播放>>空]", + "播放链接": "href=\"&&\"" +} \ No newline at end of file diff --git a/js/荐片.js b/js/荐片.js new file mode 100644 index 0000000..e500a06 --- /dev/null +++ b/js/荐片.js @@ -0,0 +1,48 @@ +var rule = { + title:'荐片', + host:'http://jpmobile.acdn.axcxa.top', + //homeUrl:'https://yjpapipxblwdohpakljwg.hxhzs.com/api/tag/hand?code=unknown601193cf375db73d&channel=wandoujia',//网站的首页链接,用于分类获取和推荐获取 + homeUrl:'http://jpmobile.acdn.axcxa.top/api/tag/hand?code=unknown601193cf375db73d&channel=wandoujia', + url:'/api/crumb/list?area=0&category_id=fyclass&page=fypage&type=0&limit=24&fyfilter', + class_name:'电视剧&综艺&电影&动漫&全部', + class_url:'2&4&1&3&0', + 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': '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': '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': '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': '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"}}', + 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:'', + // 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', + //desc:';data.description;data.id', + desc:';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("边下边播超清版")}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)}});', + }, + 搜索:'json:data;*;thumbnail;mask;*', +} \ No newline at end of file diff --git a/js/荐片.json b/js/荐片.json new file mode 100644 index 0000000..5e6b8e3 --- /dev/null +++ b/js/荐片.json @@ -0,0 +1,37 @@ +var rule = { + title:'drpy', + host:'https://frodo.douban.com', + apidoc:'https://www.doubanapi.com', + homeUrl:'', + searchUrl:'', + searchable:1, + quickSearch:1, + filterable:1, + // 分类链接fypage参数支持1个()表达式 + url:'/?pg=fypage&class=fyclass&douban=$douban', + filter_url:'fl={{fl}}', + 图片来源:'@Referer=https://api.douban.com/@User-Agent=Mozilla/5.0%20(Windows%20NT%2010.0;%20Win64;%20x64)%20AppleWebKit/537.36%20(KHTML,%20like%20Gecko)%20Chrome/113.0.0.0%20Safari/537.36', + headers:{ + "Host": "frodo.douban.com", + // "Host": "api.douban.com", + "Connection": "Keep-Alive", + "Referer": "https://servicewechat.com/wx2f9b06c1de1ccfca/84/page-frame.html", + // "content-type": "application/json", + "User-Agent": "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.143 Safari/537.36 MicroMessenger/7.0.9.501 NetType/WIFI MiniProgramEnv/Windows WindowsWechat" + }, + timeout:5000, + class_name:'热门电影&热播剧集&热播综艺&电影筛选&电视筛选&电影榜单&电视榜单', + class_url:'hot_gaia&tv_hot&show_hot&movie&tv&rank_list_movie&rank_list_tv', + filter:{'interests': [{'key': 'status', 'name': '状态', 'value': [{'n': '想看', 'v': 'mark'}, {'n': '在看', 'v': 'doing'}, {'n': '看过', 'v': 'done'}]}, {'key': 'subtype_tag', 'name': '形式', 'value': [{'n': '全部', 'v': ''}, {'n': '电影', 'v': 'movie'}, {'n': '电视', 'v': 'tv'}]}, {'key': 'year_tag', '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': '2010年代', 'v': '2010年代'}, {'n': '2000年代', 'v': '2000年代'}, {'n': '90年代', 'v': '90年代'}, {'n': '80年代', 'v': '80年代'}, {'n': '70年代', 'v': '70年代'}, {'n': '60年代', 'v': '60年代'}, {'n': '更早', 'v': '更早'}]}], 'hot_gaia': [{'key': 'sort', 'name': '排序', 'value': [{'n': '热度', 'v': 'recommend'}, {'n': '最新', 'v': 'time'}, {'n': '评分', 'v': 'rank'}]}, {'key': 'area', 'name': '地区', 'value': [{'n': '全部', 'v': '全部'}, {'n': '华语', 'v': '华语'}, {'n': '欧美', 'v': '欧美'}, {'n': '韩国', 'v': '韩国'}, {'n': '日本', 'v': '日本'}]}], 'tv_hot': [{'key': 'type', 'name': '分类', 'value': [{'n': '综合', 'v': 'tv_hot'}, {'n': '国产剧', 'v': 'tv_domestic'}, {'n': '欧美剧', 'v': 'tv_american'}, {'n': '日剧', 'v': 'tv_japanese'}, {'n': '韩剧', 'v': 'tv_korean'}, {'n': '动画', 'v': 'tv_animation'}]}], 'show_hot': [{'key': 'type', 'name': '分类', 'value': [{'n': '综合', 'v': 'show_hot'}, {'n': '国内', 'v': 'show_domestic'}, {'n': '国外', 'v': 'show_foreign'}]}], 'movie': [{'key': '类型', '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': '西部'}, {'n': '纪录片', 'v': '纪录片'}, {'n': '短片', 'v': '短片'}]}, {'key': '地区', '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': '瑞典'}, {'n': '巴西', 'v': '巴西'}, {'n': '丹麦', 'v': '丹麦'}]}, {'key': 'sort', 'name': '排序', 'value': [{'n': '近期热度', 'v': 'T'}, {'n': '首映时间', 'v': 'R'}, {'n': '高分优先', 'v': 'S'}]}, {'key': '年代', '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': '2010年代', 'v': '2010年代'}, {'n': '2000年代', 'v': '2000年代'}, {'n': '90年代', 'v': '90年代'}, {'n': '80年代', 'v': '80年代'}, {'n': '70年代', 'v': '70年代'}, {'n': '60年代', 'v': '60年代'}, {'n': '更早', 'v': '更早'}]}], 'tv': [{'key': '类型', 'name': '类型', 'value': [{'n': '不限', 'v': ''}, {'n': '电视剧', 'v': '电视剧'}, {'n': '综艺', 'v': '综艺'}]}, {'key': '电视剧形式', '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': '歌舞'}, {'n': '音乐', 'v': '音乐'}]}, {'key': '综艺形式', 'name': '综艺形式', 'value': [{'n': '不限', 'v': ''}, {'n': '真人秀', 'v': '真人秀'}, {'n': '脱口秀', 'v': '脱口秀'}, {'n': '音乐', 'v': '音乐'}, {'n': '歌舞', 'v': '歌舞'}]}, {'key': '地区', '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': '印度'}, {'n': '加拿大', 'v': '加拿大'}, {'n': '爱尔兰', 'v': '爱尔兰'}, {'n': '澳大利亚', 'v': '澳大利亚'}]}, {'key': 'sort', 'name': '排序', 'value': [{'n': '近期热度', 'v': 'T'}, {'n': '首播时间', 'v': 'R'}, {'n': '高分优先', 'v': 'S'}]}, {'key': '年代', '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': '2010年代', 'v': '2010年代'}, {'n': '2000年代', 'v': '2000年代'}, {'n': '90年代', 'v': '90年代'}, {'n': '80年代', 'v': '80年代'}, {'n': '70年代', 'v': '70年代'}, {'n': '60年代', 'v': '60年代'}, {'n': '更早', 'v': '更早'}]}, {'key': '平台', 'name': '平台', 'value': [{'n': '全部', 'v': ''}, {'n': '腾讯视频', 'v': '腾讯视频'}, {'n': '爱奇艺', 'v': '爱奇艺'}, {'n': '优酷', 'v': '优酷'}, {'n': '湖南卫视', 'v': '湖南卫视'}, {'n': 'Netflix', 'v': 'Netflix'}, {'n': 'HBO', 'v': 'HBO'}, {'n': 'BBC', 'v': 'BBC'}, {'n': 'NHK', 'v': 'NHK'}, {'n': 'CBS', 'v': 'CBS'}, {'n': 'NBC', 'v': 'NBC'}, {'n': 'tvN', 'v': 'tvN'}]}], 'rank_list_movie': [{'key': '榜单', 'name': '榜单', 'value': [{'n': '实时热门电影', 'v': 'movie_real_time_hotest'}, {'n': '一周口碑电影榜', 'v': 'movie_weekly_best'}, {'n': '豆瓣电影Top250', 'v': 'movie_top250'}]}], 'rank_list_tv': [{'key': '榜单', 'name': '榜单', 'value': [{'n': '实时热门电视', 'v': 'tv_real_time_hotest'}, {'n': '华语口碑剧集榜', 'v': 'tv_chinese_best_weekly'}, {'n': '全球口碑剧集榜', 'v': 'tv_global_best_weekly'}, {'n': '国内口碑综艺榜', 'v': 'show_chinese_best_weekly'}, {'n': '国外口碑综艺榜', 'v': 'show_global_best_weekly'}]}]}, + limit:20, + play_parse:false, + 推荐:'', + 推荐:'js:let d=[];let douban_api_host="http://api.douban.com/api/v2";let miniapp_apikey="0ac44ae016490db2204ce0a042db2916";const count=30;function miniapp_request(path,query){try{let url=douban_api_host+path;query.apikey=miniapp_apikey;fetch_params.headers=oheaders;url=buildUrl(url,query);let html=fetch(url,fetch_params);return JSON.parse(html)}catch(e){print("发生了错误:"+e.message);return{}}}function subject_real_time_hotest(){try{let res=miniapp_request("/subject_collection/subject_real_time_hotest/items",{});let lists=[];let arr=res.subject_collection_items||[];arr.forEach(function(item){if(item.type==="movie"||item.type==="tv"){let rating=item.rating?item.rating.value:"暂无评分";let honnor=(item.honor_infos||[]).map(function(it){return it.title}).join("|");lists.append({vod_id:"msearch:"+TYPE,vod_name:item.title||"",vod_pic:item.pic.normal,vod_remarks:rating+" "+honnor})}});return lists}catch(e){print("发生了错误:"+e.message);return[]}}VODS=subject_real_time_hotest();print(VODS);', + // 手动调用解析请求json的url,此lazy不方便 + lazy:'', + // 推荐:'.list_item;img&&alt;img&&src;a&&Text;a&&data-float', + 一级:'', + 一级:'js:let d=[];let douban=input.split("douban=")[1].split("&")[0];let douban_api_host="http://api.douban.com/api/v2";let miniapp_apikey="0ac44ae016490db2204ce0a042db2916";const count=30;function miniapp_request(path,query){try{let url=douban_api_host+path;query.apikey=miniapp_apikey;fetch_params.headers=oheaders;url=buildUrl(url,query);let html=fetch(url,fetch_params);if(/request_error/.test(html)){print(html)}return JSON.parse(html)}catch(e){print("发生了错误:"+e.message);return{}}}function cate_filter(d,douban){douban=douban||"";try{let res={};if(MY_CATE==="interests"){if(douban){let status=MY_FL.status||"mark";let subtype_tag=MY_FL.subtype_tag||"";let year_tag=MY_FL.year_tag||"全部";let path="/user/"+douban+"/interests";res=miniapp_request(path,{type:"movie",status:status,subtype_tag:subtype_tag,year_tag:year_tag,start:(MY_PAGE-1)*count,count:count})}else{return{}}}else if(MY_CATE==="hot_gaia"){let sort=MY_FL.sort||"recommend";let area=MY_FL.area||"全部";let path="/movie/"+MY_CATE;res=miniapp_request(path,{area:area,sort:sort,start:(MY_PAGE-1)*count,count:count})}else if(MY_CATE==="tv_hot"||MY_CATE==="show_hot"){let stype=MY_FL.type||MY_CATE;let path="/subject_collection/"+stype+"/items";res=miniapp_request(path,{start:(MY_PAGE-1)*count,count:count})}else if(MY_CATE.startsWith("rank_list")){let id=MY_CATE==="rank_list_movie"?"movie_real_time_hotest":"tv_real_time_hotest";id=MY_FL.榜单||id;let path="/subject_collection/"+id+"/items";res=miniapp_request(path,{start:(MY_PAGE-1)*count,count:count})}else{let path="/"+MY_CATE+"/recommend";let selected_categories;let tags;let sort;if(Object.keys(MY_FL).length>0){sort=MY_FL.sort||"T";tags=Object.values(MY_FL).join(",");if(MY_CATE==="movie"){selected_categories={"类型":MY_FL.类型||"","地区":MY_FL.地区||""}}else{selected_categories={"类型":MY_FL.类型||"","形式":MY_FL.类型?MY_FL.类型+"地区":"","地区":MY_FL.地区||""}}}else{sort="T";tags="";if(MY_CATE==="movie"){selected_categories={"类型":"","地区":""}}else{selected_categories={"类型":"","形式":"","地区":""}}}let params={tags:tags,sort:sort,refresh:0,selected_categories:stringify(selected_categories),start:(MY_PAGE-1)*count,count:count};res=miniapp_request(path,params)}let result={page:MY_PAGE,pagecount:Math.ceil(res.total/count),limit:count,total:res.total};let items=[];if(/^rank_list|tv_hot|show_hot/.test(MY_CATE)){items=res["subject_collection_items"]}else if(MY_CATE==="interests"){res["interests"].forEach(function(it){items.push(it.subject)})}else{items=res.items}let lists=[];items.forEach(function(item){if(item.type==="movie"||item.type==="tv"){let rating=item.rating?item.rating.value:"";let rat_str=rating||"暂无评分";let title=item.title;let honor=item.honor_infos||[];let honor_str=honor.map(function(it){return it.title}).join("|");let vod_obj={vod_name:title!=="未知电影"?title:"暂不支持展示",vod_pic:item.pic.normal,vod_remarks:rat_str+" "+honor_str};let vod_obj_d={url:item.type+"$"+item.id,title:title!=="未知电影"?title:"暂不支持展示",pic_url:item.pic.normal,desc:rat_str+" "+honor_str};lists.push(vod_obj);d.push(vod_obj_d)}});result.list=lists;return result}catch(e){print(e.message)}return{}}let res=cate_filter(d,douban);setResult2(res);', + 二级:'', + 搜索:'', +} \ No newline at end of file