永乐视频.js 871 B

1234567891011121314151617181920212223242526272829
  1. var rule = {
  2. title: '永乐视频',
  3. 模板: 'mxpro',
  4. host: 'https://www.ylys.tv', // homeUrl:'/',
  5. url: '/vodshow/fyclass--------fypage---.html',
  6. searchUrl: '/vodsearch/**----------fypage---/',
  7. class_parse: '.navbar-items li:lt(6);a&&Text;a&&href;/(\\d+)',
  8. play_parse: true,
  9. lazy: `js:
  10. let html = request(input);
  11. let hconf = html.match(/r player_.*?=(.*?)</)[1];
  12. let json = JSON5.parse(hconf);
  13. let url = json.url;
  14. if (json.encrypt == '1') {
  15. url = unescape(url);
  16. } else if (json.encrypt == '2') {
  17. url = unescape(base64Decode(url));
  18. }
  19. if (/\\.(m3u8|mp4|m4a|mp3)/.test(url)) {
  20. input = {
  21. parse: 0,
  22. jx: 0,
  23. url: url,
  24. };
  25. } else {
  26. input;
  27. }`,
  28. 搜索: 'body .module-item;.module-card-item-title&&Text;.lazyload&&data-original;.module-item-note&&Text;a&&href;.module-card-item-info&&Text',
  29. }