Add files via upload

This commit is contained in:
dxawi 2023-07-06 15:42:54 +08:00 committed by GitHub
parent 546b1cf219
commit 5c80d68236
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 550 additions and 0 deletions

358
js/360影视.js Normal file
View File

@ -0,0 +1,358 @@
var rule = {
title:'360影视',
host:'https://www.360kan.com',
homeUrl:'https://api.web.360kan.com/v1/rank?cat=2&size=9',
detailUrl:'https://api.web.360kan.com/v1/detail?cat=fyclass&id=fyid',
searchUrl:'https://api.so.360kan.com/index?force_v=1&kw=**&from=&pageno=fypage&v_ap=1&tab=all',
//url:'https://api.web.360kan.com/v1/filter/list?catid=fyclass&rank=rankhot&cat=&year=&area=&act=&size=35&pageno=fypage&callback=',
url:'https://api.web.360kan.com/v1/filter/list?catid=fyclassfyfilter',
filterable:1,//是否启用分类筛选,
filter_url:'{{fl.cateId}}&rank={{fl.by}}&cat={{fl.class}}&year={{fl.year}}&area={{fl.area}}&act={{fl.act}}&size=35&pageno=fypage&callback=',
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":"文艺"},
{"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":""},
{"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":""},
{"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":""},
{"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":""},
{"n":"最近热映","v":"rankhot"},
{"n":"最近上映","v":"ranklatest"}]}]},
headers:{
'User-Agent':'MOBILE_UA'
},
timeout:5000,
class_name:'电视剧&电影&综艺&动漫',
class_url:'2&1&3&4',
limit:5,
multi:1,
searchable:2,
play_parse:true,
lazy:'js:input=input.split("?")[0];log(input);',
// 疑似t4专用的
// lazy:'js:input={parse: 1, playUrl: "", jx: 1, url: input.split("?")[0]}',
// 手动调用解析请求json的url,此lazy不方便
// lazy:'js:input="https://cache.json.icu/home/api?type=ys&uid=292796&key=fnoryABDEFJNPQV269&url="+input.split("?")[0];log(input);let html=JSON.parse(request(input));log(html);input=html.url||input',
推荐:'json:data;title;cover;comment;cat+ent_id;description',
一级:'json:data.movies;title;cover;pubdate;id;description',
二级:'',
二级:'js:let html=JSON.parse(fetch(input,fetch_params));let data=html.data;let tilte=data.title;let img=data.cdncover;let vod_type=data.moviecategory.join(",");let area=data.area.join(",");let director=data.director.join(",");let actor=data.actor.join(",");let content=data.description;let base_vod={vod_id:input,vod_name:tilte,type_name:vod_type,vod_actor:actor,vod_director:director,vod_content:content,vod_remarks:area,vod_pic:urljoin2(input,img)};let delta=200;let vod_play={};let sites=data.playlink_sites;sites.forEach(function(site){let playList="";let vodItems=[];if(data.allupinfo){let total=parseInt(data.allupinfo[site]);for(let j=1;j<total;j+=delta){let end=Math.min(total,j+delta-1);let url2=buildUrl(input,{start:j,end:end,site:site});let vod_data=JSON.parse(fetch(url2),fetch_params).data;if(vod_data.allepidetail){vod_data=vod_data.allepidetail[site];vod_data.forEach(function(item,index){vodItems.push((item.playlink_num||"")+"$"+urlDeal(item.url||""))})}else{vod_data=vod_data.defaultepisode;vod_data.forEach(function(item,index){vodItems.push((item.period||"")+(item.name||"")+"$"+urlDeal(item.url)||"")})}}}else{let item=data.playlinksdetail[site];vodItems.push((item.sort||"")+"$"+urlDeal(item.default_url||""))}if(vodItems.length>0){playList=vodItems.join("#")}if(playList.length<1){return}vod_play[site]=playList});let tabs=Object.keys(vod_play);let playUrls=[];for(let id in tabs){print("id:"+id);playUrls.push(vod_play[tabs[id]])}if(tabs.length>0){let vod_play_from=tabs.join("$$$");let vod_play_url=playUrls.join("$$$");base_vod.vod_play_from=vod_play_from;base_vod.vod_play_url=vod_play_url}VOD=base_vod;',
搜索:'json:data.longData.rows;titleTxt||titlealias;cover;cat_name;cat_id+en_id;description',
}

39
js/优酷.js Normal file

File diff suppressed because one or more lines are too long

39
js/奇珍异兽.js Normal file

File diff suppressed because one or more lines are too long

34
js/百忙无果.js Normal file

File diff suppressed because one or more lines are too long

39
js/腾云驾雾.js Normal file
View File

@ -0,0 +1,39 @@
var rule = {
title:'腾云驾雾',
host:'https://v.%71%71.com',
// homeUrl:'/channel/choice?listpage=1&channel=choice&sort=18&_all=1',
homeUrl:'/x/bu/pagesheet/list?_all=1&append=1&channel=choice&listpage=1&offset=0&pagesize=21&iarea=-1&sort=18',
detailUrl:'https://node.video.%71%71.com/x/api/float_vinfo2?cid=fyid',
// searchUrl:'https://node.video.%71%71.com/x/api/msearch?keyWord=**',
searchUrl:'/x/search/?q=**&stag=fypage',
// searchUrl:'http://s.video.qq.com/smartbox?plat=2&ver=0&num=29&otype=json&query=**',
searchable:2,
filterable:1,
multi:1,
// url:'/channel/fyclass?listpage=fypage&channel=fyclass&sort=18&_all=1',
url:'/x/bu/pagesheet/list?_all=1&append=1&channel=fyclass&listpage=1&offset=((fypage-1)*21)&pagesize=21&iarea=-1',
filter_url:'sort={{fl.sort or 18}}&year={{fl.year}}&pay={{fl.pay}}',
filter:{'choice': [{'key': 'sort', 'name': '排序', 'value': [{'n': '最热', 'v': '18'}, {'n': '最新', 'v': '19'}, {'n': '好评', 'v': '16'}, {'n': '高分好评', 'v': '21'}]}, {'key': 'pay', 'name': '资费', 'value': [{'n': '全部', 'v': '-1'}, {'n': '免费', 'v': '867'}, {'n': '会员', 'v': '6'}]}, {'key': 'year', 'name': '年代', 'value': [{'n': '全部', 'v': '-1'}, {'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'}]}], 'tv': [{'key': 'sort', 'name': '排序', 'value': [{'n': '最热', 'v': '18'}, {'n': '最新', 'v': '19'}, {'n': '好评', 'v': '16'}, {'n': '高分好评', 'v': '21'}]}, {'key': 'pay', 'name': '资费', 'value': [{'n': '全部', 'v': '-1'}, {'n': '免费', 'v': '867'}, {'n': '会员', 'v': '6'}]}, {'key': 'year', 'name': '年代', 'value': [{'n': '全部', 'v': '-1'}, {'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'}]}], 'movie': [{'key': 'sort', 'name': '排序', 'value': [{'n': '最热', 'v': '18'}, {'n': '最新', 'v': '19'}, {'n': '好评', 'v': '16'}, {'n': '高分好评', 'v': '21'}]}, {'key': 'pay', 'name': '资费', 'value': [{'n': '全部', 'v': '-1'}, {'n': '免费', 'v': '867'}, {'n': '会员', 'v': '6'}]}, {'key': 'year', 'name': '年代', 'value': [{'n': '全部', 'v': '-1'}, {'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'}]}], 'variety': [{'key': 'sort', 'name': '排序', 'value': [{'n': '最热', 'v': '18'}, {'n': '最新', 'v': '19'}, {'n': '好评', 'v': '16'}, {'n': '高分好评', 'v': '21'}]}, {'key': 'pay', 'name': '资费', 'value': [{'n': '全部', 'v': '-1'}, {'n': '免费', 'v': '867'}, {'n': '会员', 'v': '6'}]}, {'key': 'year', 'name': '年代', 'value': [{'n': '全部', 'v': '-1'}, {'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'}]}], 'cartoon': [{'key': 'sort', 'name': '排序', 'value': [{'n': '最热', 'v': '18'}, {'n': '最新', 'v': '19'}, {'n': '好评', 'v': '16'}, {'n': '高分好评', 'v': '21'}]}, {'key': 'pay', 'name': '资费', 'value': [{'n': '全部', 'v': '-1'}, {'n': '免费', 'v': '867'}, {'n': '会员', 'v': '6'}]}, {'key': 'year', 'name': '年代', 'value': [{'n': '全部', 'v': '-1'}, {'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'}]}], 'child': [{'key': 'sort', 'name': '排序', 'value': [{'n': '最热', 'v': '18'}, {'n': '最新', 'v': '19'}, {'n': '好评', 'v': '16'}, {'n': '高分好评', 'v': '21'}]}, {'key': 'pay', 'name': '资费', 'value': [{'n': '全部', 'v': '-1'}, {'n': '免费', 'v': '867'}, {'n': '会员', 'v': '6'}]}, {'key': 'year', 'name': '年代', 'value': [{'n': '全部', 'v': '-1'}, {'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'}]}], 'doco': [{'key': 'sort', 'name': '排序', 'value': [{'n': '最热', 'v': '18'}, {'n': '最新', 'v': '19'}, {'n': '好评', 'v': '16'}, {'n': '高分好评', 'v': '21'}]}, {'key': 'pay', 'name': '资费', 'value': [{'n': '全部', 'v': '-1'}, {'n': '免费', 'v': '867'}, {'n': '会员', 'v': '6'}]}, {'key': 'year', 'name': '年代', 'value': [{'n': '全部', 'v': '-1'}, {'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'}]}]},
headers:{
'User-Agent':'PC_UA'
},
timeout:5000,
// class_parse:'.site_channel a;a&&Text;a&&href;channel/(.*)',
cate_exclude:'会员|游戏|全部',
class_name:'精选&电视剧&电影&综艺&动漫&少儿&纪录片',
class_url:'choice&tv&movie&variety&cartoon&child&doco',
limit:20,
// play_parse:true,
// 手动调用解析请求json的url,此lazy不方便
lazy:'js:input="https://cache.json.icu/home/api?type=ys&uid=292796&key=fnoryABDEFJNPQV269&url="+input.split("?")[0];log(input);let html=JSON.parse(request(input));log(html);input=html.url||input',
推荐:'.list_item;img&&alt;img&&src;a&&Text;a&&data-float',
一级:'.list_item;img&&alt;img&&src;a&&Text;a&&data-float',
// 二级:{is_json:1,"title":"data.title;data.moviecategory[0]+data.moviecategory[1]","img":"data.cdncover","desc":"data.area[0];data.director[0]","content":"data.description","tabs":"data.playlink_sites;data.playlinksdetail.#idv.quality","lists":"data.playlinksdetail.#idv.default_url"},
// 二级:{is_json:1,"title":"data.title;data.moviecategory[0]+data.moviecategory[1]","img":"data.cdncover","desc":"data.area[0];data.director[0]","content":"data.description","tabs":"data.playlink_sites","lists":"data.playlinksdetail.#idv.default_url"},
二级:'',
二级:'js:VOD={};let d=[];let video_list=[];let video_lists=[];let list=[];let QZOutputJson;let html=fetch(input,fetch_params);let sourceId=/get_playsource/.test(input)?input.match(/id=(\\d*?)&/)[1]:input.split("cid=")[1];let cid=sourceId;let detailUrl="https://v.%71%71.com/detail/m/"+cid+".html";log("详情页:"+detailUrl);var pdfh=jsp.pdfh;var pd=jsp.pd;try{let json=JSON.parse(html);VOD={vod_url:input,vod_name:json.c.title,type_name:json.typ.join(","),vod_actor:json.nam.join(","),vod_year:json.c.year,vod_content:json.c.description,vod_remarks:json.rec,vod_pic:urljoin2(input,json.c.pic)}}catch(e){log("解析片名海报等基础信息发生错误:"+e.message)}if(/get_playsource/.test(input)){eval(html);let indexList=QZOutputJson.PlaylistItem.indexList;indexList.forEach(function(it){let dataUrl="https://s.video.qq.com/get_playsource?id="+sourceId+"&plat=2&type=4&data_type=3&range="+it+"&video_type=10&plname=qq&otype=json";eval(fetch(dataUrl,fetch_params));let vdata=QZOutputJson.PlaylistItem.videoPlayList;vdata.forEach(function(item){d.push({title:item.title,pic_url:item.pic,desc:item.episode_number+"\\t\\t\\t播放量"+item.thirdLine,url:item.playUrl})});video_lists=video_lists.concat(vdata)})}else{let json=JSON.parse(html);video_lists=json.c.video_ids;let url="https://v.qq.com/x/cover/"+sourceId+".html";if(video_lists.length===1){let vid=video_lists[0];url="https://v.qq.com/x/cover/"+cid+"/"+vid+".html";d.push({title:"在线播放",url:url})}else if(video_lists.length>1){for(let i=0;i<video_lists.length;i+=30){video_list.push(video_lists.slice(i,i+30))}video_list.forEach(function(it,idex){let o_url="https://union.video.qq.com/fcgi-bin/data?otype=json&tid=682&appid=20001238&appkey=6c03bbe9658448a4&union_platform=1&idlist="+it.join(",");let o_html=fetch(o_url,fetch_params);eval(o_html);QZOutputJson.results.forEach(function(it1){it1=it1.fields;let url="https://v.qq.com/x/cover/"+cid+"/"+it1.vid+".html";d.push({title:it1.title,pic_url:it1.pic160x90.replace("/160",""),desc:it1.video_checkup_time,url:url,type:it1.category_map&&it1.category_map.length>1?it1.category_map[1]:""})})})}}let yg=d.filter(function(it){return it.type&&it.type!=="正片"});let zp=d.filter(function(it){return!(it.type&&it.type!=="正片")});VOD.vod_play_from=yg.length<1?"qq":"qq$$$qq 预告及花絮";VOD.vod_play_url=yg.length<1?d.map(function(it){return it.title+"$"+it.url}).join("#"):[zp,yg].map(function(it){return it.map(function(its){return its.title+"$"+its.url}).join("#")}).join("$$$");',
// 二级:'js:VOD={};let d=[];let video_list=[];let video_lists=[];let list=[];let QZOutputJson;let html=fetch(input,fetch_params);let sourceId=/get_playsource/.test(input)?input.match(/id=(\\d*?)&/)[1]:input.split("cid=")[1];let cid=sourceId;let detailUrl="https://v.%71%71.com/detail/m/"+cid+".html";log("详情页:"+detailUrl);var pdfh=jsp.pdfh;var pd=jsp.pd;try{let json=JSON.parse(html);VOD={vod_url:input,vod_name:json.c.title,type_name:json.typ.join(","),vod_actor:json.nam.join(","),vod_year:json.c.year,vod_content:json.c.description,vod_remarks:json.rec,vod_pic:urljoin2(input,json.c.pic)}}catch(e){log("解析片名海报等基础信息发生错误:"+e.message)}if(/get_playsource/.test(input)){eval(html);let indexList=QZOutputJson.PlaylistItem.indexList;indexList.forEach(function(it){let dataUrl="https://s.video.qq.com/get_playsource?id="+sourceId+"&plat=2&type=4&data_type=3&range="+it+"&video_type=10&plname=qq&otype=json";eval(fetch(dataUrl,fetch_params));let vdata=QZOutputJson.PlaylistItem.videoPlayList;vdata.forEach(function(item){d.push({title:item.title,pic_url:item.pic,desc:item.episode_number+"\\t\\t\\t播放量"+item.thirdLine,url:item.playUrl})});video_lists=video_lists.concat(vdata)})}else{let json=JSON.parse(html);video_lists=json.c.video_ids;let url="https://v.qq.com/x/cover/"+sourceId+".html";if(json.c.type===10){let dataUrl="https://s.video.qq.com/get_playsource?id="+json.c.column_id+"&plat=2&type=2&data_type=3&video_type=8&plname=qq&otype=json";let o_html=fetch(dataUrl,fetch_params);eval(o_html);video_lists=[];let indexList=QZOutputJson.PlaylistItem.indexList;indexList.forEach(function(it){let dataUrl="https://s.video.qq.com/get_playsource?id="+json.c.column_id+"&plat=2&type=4&data_type=3&range="+it+"&video_type=10&plname=qq&otype=json";eval(fetch(dataUrl,fetch_params));let vdata=QZOutputJson.PlaylistItem.videoPlayList;vdata.forEach(function(item){d.push({title:item.title,pic_url:item.pic,desc:item.episode_number+"\\t\\t\\t播放量"+item.thirdLine,url:item.playUrl})});video_lists=video_lists.concat(vdata)})}else if(video_lists.length===1){d.push({title:"在线播放",url:url})}else if(video_lists.length>1){for(let i=0;i<video_lists.length;i+=30){video_list.push(video_lists.slice(i,i+30))}video_list.forEach(function(it,idex){let o_url="https://union.video.qq.com/fcgi-bin/data?otype=json&tid=682&appid=20001238&appkey=6c03bbe9658448a4&union_platform=1&idlist="+it.join(",");let o_html=fetch(o_url,fetch_params);eval(o_html);QZOutputJson.results.forEach(function(it1){it1=it1.fields;let url="https://v.qq.com/x/cover/"+cid+"/"+it1.vid+".html";d.push({title:it1.title,pic_url:it1.pic160x90.replace("/160",""),desc:it1.video_checkup_time,url:url,type:it1.category_map&&it1.category_map.length>1?it1.category_map[1]:""})})})}}let yg=d.filter(function(it){return it.type&&it.type!=="正片"});let zp=d.filter(function(it){return!(it.type&&it.type!=="正片")});VOD.vod_play_from=yg.length<1?"qq":"qq$$$qq 预告及花絮";VOD.vod_play_url=yg.length<1?d.map(function(it){return it.title+"$"+it.url}).join("#"):[zp,yg].map(function(it){return it.map(function(its){return its.title+"$"+its.url}).join("#")}).join("$$$");',
// 搜索:'json:uiData;data[0].title;data[0].posterPic;.titleMarkLabelList[1].primeText;data[0].id;data[0].publishDate',
搜索:'js:let d=[];pdfa=jsp.pdfa;pdfh=jsp.pdfh;pd=jsp.pd;let html=request(input);let baseList=pdfa(html,"body&&.result_item_v");baseList.forEach(function(it){let longText=pdfh(it,".result_title&&Text");let shortText=pdfh(it,".sub&&Text");let fromTag=pdfh(it,".result_source&&Text");let score=pdfh(it,".result_score&&Text");let content=pdfh(it,".desc_text&&Text");let url=pdfh(it,".result_title&&a&&href");let img=pd(it,".figure_pic&&src");url="https://node.video.qq.com/x/api/float_vinfo2?cid="+url.match(/.*\\/(.*?)\\.html/)[1];log(shortText+"|"+url);if(fromTag.match(/腾讯/)){d.push({title:longText.split(shortText)[0],img:img,url:url,content:content,desc:"⭐"+longText.split(shortText)[1]+"-"+shortText+" "+score})}});setResult(d);',
// 搜索:'json:item;word;dc;class;id;sn',
}

41
js/菜狗.js Normal file

File diff suppressed because one or more lines are too long