华乐影院.js 1.6 KB

123456789101112131415161718192021222324252627282930313233
  1. var rule = {
  2. title: '华乐影院',
  3. host: 'https://huale.tv',
  4. class_name: '电影&电视剧&综艺&动漫',
  5. class_url: '1&2&3&4',
  6. searchUrl: '/vodsearch/page/fypage/wd/**.html',
  7. searchable: 2,
  8. quickSearch: 0,
  9. headers: {
  10. 'User-Agent': 'MOBILE_UA',
  11. },
  12. url: '/vodshow/fyclass/page/fypage.html',
  13. filterable: 0,
  14. filter_url: '',
  15. filter: {},
  16. filter_def: {},
  17. detailUrl: '/index.php/vod/detail/id/fyid.html',
  18. play_parse: true,
  19. 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 }",
  20. limit: 6,
  21. 推荐: '.public-list-box;a&&title;.lazy&&data-src;.public-list-prb&&Text;a&&href',
  22. 一级: '.public-list-bj a;a&&title;.lazy&&data-src;.public-list-prb&&Text;a&&href',
  23. 二级: {
  24. title: '.slide-info-title&&Text;.slide-info:eq(2)--strong&&Text',
  25. img: '.lazy&&data-src',
  26. desc: '.slide-info-remarks&&Text;.slide-info-remarks:eq(1)&&Text;.slide-info-remarks:eq(2)&&Text;.slide-info:eq(1)--strong&&Text;.info-parameter&&ul&&li:eq(3)&&Text',
  27. content: '#height_limit&&Text',
  28. tabs: '.anthology.wow.fadeInUp.animated&&.swiper-wrapper&&a',
  29. tab_text: 'a--span&&Text',
  30. lists: '.anthology-list-box:eq(#id) li',
  31. },
  32. 搜索: '*',
  33. }