可可影视.js 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. var rule = {
  2. title: '可可影视',
  3. host: 'https://keke5.app',
  4. // url: '/show/fyclass-----2-fypage.html',
  5. url: '/show/fyclass-fyfilter-fypage.html',
  6. filter_url:'{{fl.类型}}-{{fl.地区}}-{{fl.语言}}-{{fl.年份}}-{{fl.排序}}',
  7. searchUrl: '/search?k=**&page=fypage',
  8. searchable: 2,
  9. quickSearch: 0,
  10. filterable: 1,
  11. headers: {
  12. 'User-Agent': 'MOBILE_UA',
  13. },
  14. class_parse: '#nav-swiper&&.nav-swiper-slide;a&&Text;a&&href;/(\\w+).html',
  15. cate_exclude:'Netflix|今日更新|专题列表|排行榜',
  16. tab_order:['超清', '蓝光', '极速蓝光'],
  17. play_parse: true,
  18. lazy: '',
  19. limit: 20,
  20. 推荐: '.section-box:eq(2)&&.module-box-inner&&.module-item;*;*;*;*',
  21. double: false,
  22. 一级: '.module-box-inner&&.module-item;.v-item-title:eq(-1)&&Text;img&&data-original;.v-item-bottom&&span&&Text;a&&href',
  23. 二级: {
  24. title: '.detail-title&&Text;.detail-tags&&a:eq(-2)&&Text',
  25. img: '.detail-pic&&img&&data-original',
  26. desc: '.detail-info-row-main:eq(-2)&&Text;.detail-tags&&a&&Text;.detail-tags&&a:eq(1)&&Text;.detail-info-row-main:eq(1)&&Text;.detail-info-row-main&&Text',
  27. content: '.detail-desc&&Text',
  28. tabs: '.source-item-label',
  29. lists: '.episode-list:eq(#id) a',
  30. },
  31. 搜索: '.search-result-list&&a;.title&&Text;*;.search-result-item-header&&Text;a&&href;.desc&&Text',
  32. 图片替换:'https://keke5.app=>https://vres.miximixi.me',
  33. filter:'H4sIAAAAAAAAA+2Zz08bRxTH/xefOdgGtTi3HlqpUpVLe6hURREHV4qa0kN/qFWEZLANxhBsEDFx7AIpGEyCf0CQY9bY/md2Ztf/RWf95r0ZR+3LtqGRqviC+LzvzOzs7Nt531k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CkVfKyjFVFQxjj4fUK1rEMgPodPhcV2mQAUPtk8YFKK5Dgf8rMYVGtPW53AHRUcy5Fo4g7PwBtd7/vyKe40hpMOd9Qa0jlfAxhLMJfWqDb+mbAlc23l/N3+1rwbmZg+s1g+s1gan1snlqf/7n1mbst6+M5L0T/CaYzAGnVA9dxvFOqwcQ0t2bb9NZAWuZCFI5Mb8OhDBP36Z8xTNznfa/SFUe0OQHQbPMrXqWJUwUwJffvP/1zBo2zBl8mF378YVFrGmie3M8zjGHiDJosP3NvaEcFmP6cMC0j0zLyIZeRj/55GTFh+ymPUqv+H5R6AJTqu1XRxBOLBppVuajON5jqANTvbOh38tgPgK639tjbPcDrAYQpK+yv28zJij3fMudw9tdt7myf7Yhm2rySAbz3zFEpsvQnK+G0IDwhAAA=',
  34. 一级f:`js:
  35. let urls = [
  36. 'https://keke5.app/show/1-----1-1.html',
  37. 'https://keke5.app/show/2-----1-1.html',
  38. 'https://keke5.app/show/3-----1-1.html',
  39. 'https://keke5.app/show/4-----1-1.html',
  40. 'https://keke5.app/show/6-----1-1.html',
  41. ];
  42. let filters = {};
  43. pdfa = jsp.pdfa;
  44. pdfh = jsp.pdfh;
  45. for(let url of urls){
  46. let fclass = url.match(/show\\/(\\d+)-/)[1];
  47. console.log(fclass);
  48. let html = request(url);
  49. let tabs = pdfa(html, '.filter-row');
  50. let data = [];
  51. for (let tab of tabs) {
  52. let title = pdfh(tab, 'strong&&Text').replace(':','');
  53. let lis = pdfa(tab, 'a');
  54. let _map = {key: title, name: title};
  55. let value = [];
  56. for (let li of lis) {
  57. let n = pdfh(li, 'a&&Text').trim();
  58. let v=n;
  59. if(/全部|地区|类型/.test(n)){
  60. v = '';
  61. }else if(/综合/.test(n)){
  62. v = '1';
  63. }else{
  64. v = pdfh(li,'a&&href');
  65. try {
  66. v = v.match(/-(.*?)1-1\.html/)[1].replace(/-/g,'');
  67. }catch (e) {
  68. v = v.match(/-(.*?)-1\.html/)[1].replace(/-/g,'');
  69. }
  70. v = decodeURIComponent(v);
  71. }
  72. value.push({
  73. 'n': n, 'v': v
  74. });
  75. }
  76. _map['value'] = value;
  77. data.push(_map);
  78. }
  79. filters[fclass] = data;
  80. }
  81. VODS = [filters];
  82. console.log(gzip(JSON.stringify(filters)));
  83. `,
  84. }