kuaikan.js 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. var rule={
  2. title:'快看',
  3. host:'https://www.kuaikanys.net',
  4. // homeUrl:'/',
  5. url:'/s/fyfilter/page/fypage.html',
  6. filterable:1,//是否启用分类筛选,
  7. filter_url:'{{fl.cateId}}',
  8. filter: {"dianying":[{"key":"cateId","name":"类型","value":[{"n":"全部","v":"dianying"},{"n":"动作片","v":"dongzuopian"},{"n":"喜剧片","v":"xijupian"},{"n":"爱情片","v":"aiqingpian"},{"n":"科幻片","v":"kehuanpian"},{"n":"言情片","v":"yanqingpian"},{"n":"恐怖片","v":"kongbupian"},{"n":"剧情片","v":"juqingpian"},{"n":"战争片","v":"zhanzhengpian"}]}],"lianxuju":[{"key":"cateId","name":"类型","value":[{"n":"全部","v":"lianxuju"},{"n":"国产剧","v":"guochanju"},{"n":"港台剧","v":"gangtaiju"},{"n":"日韩剧","v":"rihanju"},{"n":"欧美剧","v":"oumeiju"},{"n":"其他剧","v":"qitaju"}]}]},
  9. filter_def:{
  10. dianying:{cateId:'dianying'},
  11. lianxuju:{cateId:'lianxuju'},
  12. zongyi:{cateId:'zongyi'},
  13. dongman:{cateId:'dongman'}
  14. },
  15. searchUrl:'/vodsearch/-------------.html?wd=**&submit=',
  16. searchable:2,//是否启用全局搜索,
  17. quickSearch:0,//是否启用快速搜索,
  18. headers:{//网站的请求头,完整支持所有的,常带ua和cookies
  19. 'User-Agent':'MOBILE_UA',
  20. // "Cookie": "searchneed=ok"
  21. },
  22. class_parse:'nav ul li;a&&Text;a&&href;.*/(.*?)\.html',
  23. cate_exclude:'专题',
  24. play_parse:true,
  25. lazy:`js:
  26. var html=JSON.parse(request(input).match(/r player_.*?=(.*?)</)[1]);
  27. log(html);
  28. var url=html.url;
  29. if(html.encrypt=='1'){
  30. url=unescape(url)
  31. }else if(html.encrypt=='2'){
  32. url=unescape(base64Decode(url))
  33. }
  34. var apiurl = 'https://www.kuaikanys.net/jiexi/jiekou-1/api.php';
  35. var purl = JSON.parse(request(apiurl, {
  36. headers: {
  37. 'Referer': 'https://www.kuaikanys.net/jiexi/jiekou-1/?url='
  38. },
  39. body: 'url=' + url + '&ac=jx',
  40. method: 'POST'
  41. })).url;
  42. input = {
  43. jx: 0,
  44. url: /m3u8|mp4/.test(url) ? url: purl,
  45. parse: 0
  46. }
  47. `,
  48. limit:6,
  49. 推荐:'.show:eq(1);ul&&li;*;*;*;*',
  50. double:true, // 推荐内容是否双层定位
  51. 一级:'.show&&ul&&li;a&&title;img&&src;.score&&Text;a&&href',
  52. // 二级:{"title":"h1&&Text;.info&&ul&&p&&Text","img":"img&&src","desc":".info&&ul&&p:eq(-2)&&Text;.info&&ul&&p:eq(-1)&&Text;.info&&ul&&p:eq(0)&&Text;.info&&ul&&p:eq(1)&&Text;.info&&ul&&p:eq(2)&&Text;.info&&ul&&p:eq(3)&&Text","content":".text&&Text","tabs":".play&&span","lists":".playlist&&ul:eq(#id) li"},
  53. 二级:{
  54. "title":"h1&&Text;.info&&ul&&p&&Text",
  55. "img":"img&&src",
  56. "desc":";;;.info ul li:eq(0)&&Text;.info ul li:eq(1)&&Text;.info&&ul&&p:eq(3)&&Text",
  57. // "content":".text p&&Text",
  58. "content":".text&&Text",
  59. "tabs":".play&&span",
  60. "lists":".playlist&&ul:eq(#id) li"
  61. },
  62. 搜索:'.show&&ul&&li;a&&title;img&&src;.score&&Text;a&&href',
  63. // 搜索:'*;*;*;*;*',
  64. }