功夫熊猫.js 1.6 KB

12345678910111213141516171819202122232425262728293031
  1. var rule = {
  2. title: '功夫熊猫',
  3. host: 'https://www.kongfutv.com',
  4. searchUrl: '/vodsearch/**----------fypage---.html',
  5. url: '/vodshow/fyclass--------fypage---.html',
  6. headers: {
  7. 'User-Agent': 'MOBILE_UA',
  8. },
  9. timeout: 5000,
  10. class_parse: 'body&&.hl-nav li;a&&Text;a&&href;.*/(.*?).html',
  11. cate_exclude: 'VIP|专题|最新|排行',
  12. limit: 40,
  13. play_parse: true,
  14. lazy: "js:\n let html = request(input);\n let hconf = html.match(/r player_.*?=(.*?)</)[1];\n let json = JSON5.parse(hconf);\n let url = json.url;\n if (json.encrypt == '1') {\n url = unescape(url);\n } else if (json.encrypt == '2') {\n url = unescape(base64Decode(url));\n }\n if (/\\.(m3u8|mp4|m4a|mp3)/.test(url)) {\n input = {\n parse: 0,\n jx: 0,\n url: url,\n };\n } else {\n input = url && url.startsWith('http') && tellIsJx(url) ? {parse:0,jx:1,url:url}:input;\n }",
  15. double: true,
  16. 推荐: '.hl-vod-list;li;a&&title;a&&data-original;.remarks&&Text;a&&href',
  17. 一级: '.hl-vod-list&&.hl-list-item;a&&title;a&&data-original;.remarks&&Text;a&&href',
  18. 二级: {
  19. title: '.hl-dc-title&&Text;.hl-dc-content&&li:eq(6)&&Text',
  20. img: '.hl-lazy&&data-original',
  21. desc: '.hl-dc-content&&li:eq(10)&&Text;.hl-dc-content&&li:eq(4)&&Text;.hl-dc-content&&li:eq(5)&&Text;.hl-dc-content&&li:eq(2)&&Text;.hl-dc-content&&li:eq(3)&&Text',
  22. content: '.hl-content-text&&Text',
  23. tabs: '.hl-tabs&&a',
  24. tab_text: 'a--span&&Text',
  25. lists: '.hl-plays-list:eq(#id)&&li',
  26. },
  27. 搜索: '.hl-list-item;a&&title;a&&data-original;.remarks&&Text;a&&href',
  28. searchable: 2,
  29. quickSearch: 0,
  30. filterable: 0,
  31. }