360影视.js 2.9 KB

12345678910111213141516171819202122232425262728
  1. var rule = {
  2. title:'360影视',
  3. host:'https://www.360kan.com',
  4. homeUrl:'https://api.web.360kan.com/v1/rank?cat=2&size=9',
  5. detailUrl:'https://api.web.360kan.com/v1/detail?cat=fyclass&id=fyid',
  6. searchUrl:'https://api.so.360kan.com/index?force_v=1&kw=**&from=&pageno=fypage&v_ap=1&tab=all',
  7. url:'https://api.web.360kan.com/v1/filter/list?catid=fyclass&rank=rankhot&cat=&year=&area=&act=&size=35&pageno=fypage&callback=',
  8. headers:{
  9. 'User-Agent':'MOBILE_UA'
  10. },
  11. timeout:5000,
  12. class_name:'电视剧&电影&综艺&动漫',
  13. class_url:'2&1&3&4',
  14. limit:5,
  15. multi:1,
  16. searchable:2,
  17. play_parse:true,
  18. lazy:'js:input=input.split("?")[0];log(input);',
  19. // 疑似t4专用的
  20. // lazy:'js:input={parse: 1, playUrl: "", jx: 1, url: input.split("?")[0]}',
  21. // 手动调用解析请求json的url,此lazy不方便
  22. // 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',
  23. 推荐:'json:data;title;cover;comment;cat+ent_id;description',
  24. 一级:'json:data.movies;title;cover;pubdate;id;description',
  25. 二级:'',
  26. 二级:'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;',
  27. 搜索:'json:data.longData.rows;titleTxt||titlealias;cover;cat_name;cat_id+en_id;description',
  28. }