爱壹帆.js 1.7 KB

1234567891011121314151617181920212223242526272829
  1. var rule = {
  2. title: '爱壹帆',
  3. host: 'https://www.iyf.lv/',
  4. url: '/k/fyclass--------fypage---/',
  5. searchUrl: '/s/-------------/?wd=**',
  6. searchable: 2,
  7. quickSearch: 0,
  8. filterable: 0,
  9. headers: {
  10. 'User-Agent': 'MOBILE_UA',
  11. },
  12. class_parse: '.navbar-items li:gt(0):lt(6);a&&Text;a&&href;/(\\d+)',
  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. limit: 6,
  16. double: true,
  17. 推荐: '.tab-list.active;a.module-poster-item.module-item;.module-poster-item-title&&Text;.lazyload&&data-original;.module-item-note&&Text;a&&href',
  18. 一级: 'body a.module-poster-item.module-item;a&&title;.lazyload&&data-original;.module-item-note&&Text;a&&href',
  19. 二级: {
  20. title: 'h1&&Text;.module-info-tag-link:eq(-1)&&Text',
  21. img: '.lazyload&&data-original||data-src||src',
  22. desc: '.module-info-item:eq(-2)&&Text;.module-info-tag-link&&Text;.module-info-tag-link:eq(1)&&Text;.module-info-item:eq(2)&&Text;.module-info-item:eq(1)&&Text',
  23. content: '.module-info-introduction&&Text',
  24. tabs: '.module-tab-item',
  25. lists: '.module-play-list:eq(#id) a',
  26. tab_text: 'div--small&&Text',
  27. },
  28. 搜索: 'body .module-item;.module-card-item-title&&Text;.lazyload&&data-original;.module-item-note&&Text;a&&href;.module-info-item-content&&Text',
  29. }