达达猪.js 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. Object.assign(muban.mxpro.二级, {
  2. tab_text: 'div--small&&Text',
  3. });
  4. var rule = {
  5. 模板: 'mxpro',
  6. title: '达达猪',
  7. host: ' https://www.dadazhu.me',
  8. url: '/vodtype/fyclass',
  9. class_parse: '.navbar-items&&li;a&&Text;a&&href;.*/(.*?).html',
  10. cate_exclude: '更新|热榜',
  11. lazy: $js.toString(() => {
  12. input = {
  13. parse: 1,
  14. url: input,
  15. js: 'document.querySelector("#playleft iframe").contentWindow.document.querySelector("#start").click()',
  16. }
  17. }),
  18. searchUrl: '/rss.xml?wd=**',
  19. 搜索: $js.toString(() => {
  20. let html = post(input.split('?')[0], {body: input.split('?')[1]});
  21. let items = pdfa(html, 'rss&&item');
  22. // log(items);
  23. let d = [];
  24. items.forEach(it => {
  25. it = it.replace(/title|link|author|pubdate|description/g, 'p');
  26. let url = pdfh(it, 'p:eq(1)&&Text');
  27. url = url.replace(/cc/g, 'me');
  28. d.push({
  29. title: pdfh(it, 'p&&Text'),
  30. url: url,
  31. desc: pdfh(it, 'p:eq(3)&&Text'),
  32. content: pdfh(it, 'p:eq(2)&&Text'),
  33. pic_url: "",
  34. });
  35. });
  36. setResult(d);
  37. }),
  38. }