蓝光影视.js 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. var rule = {
  2. title: '蓝光影视',
  3. host: 'https://www.languang.pro',
  4. searchUrl: 'index.php/rss/index.xml?wd=**',
  5. url: '/vodshow/fyclass--------fypage---.html',
  6. headers: {
  7. 'User-Agent': 'MOBILE_UA'
  8. },
  9. class_parse: '.hl-nav li:gt(0):lt(4);a&&Text;a&&href;.*/(.*?).html',
  10. //cate_exclude: '明星|专题|最新|排行|豆瓣',
  11. play_parse: true,
  12. lazy: `js: input = { jx: 0, parse: 1, url: input }`,
  13. 推荐: '*',
  14. double: true,
  15. 一级: '.hl-vod-list li;a&&title;a&&data-original;.hl-pic-text&&span&&Text;a&&href',
  16. 二级: {
  17. title: 'h2&&Text',
  18. img: '.hl-lazy&&data-original',
  19. desc: '.hl-full-box&&li:eq(1)&&Text;.hl-full-box&&li:eq(2)&&Text;.hl-full-box&&li:eq(3)&&Text;.hl-full-box&&li:eq(4)&&Text;.hl-full-box&&li:eq(5)&&Text;.hl-full-box&&li:eq(6)&&Text',
  20. content: '.hl-content-text&&Text',
  21. tabs: '.hl-tabs&&a',
  22. lists: '.hl-plays-list:eq(#id)&&li'
  23. },
  24. 搜索: $js.toString(() => {
  25. let html = request(input);
  26. let items = pdfa(html, 'rss&&item');
  27. let d = [];
  28. items.forEach(it => {
  29. it = it.replace(/title|link|author|pubdate|description/g, 'p');
  30. let url = pdfh(it, 'p:eq(1)&&Text');
  31. d.push({
  32. title: pdfh(it, 'p&&Text'),
  33. url: url,
  34. desc: pdfh(it, 'p:eq(3)&&Text'),
  35. content: pdfh(it, 'p:eq(2)&&Text'),
  36. pic_url: 'https://img.soogif.com/qKCd8nJVrHpOaiRrh59615VCRe5DtvM5.gif',
  37. });
  38. });
  39. setResult(d);
  40. }),
  41. searchable: 2,
  42. quickSearch: 0
  43. }