达达龟.js 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. var rule = {
  2. title:'达达龟',
  3. 模板:'首图2',
  4. host:'https://www.dadagui.me',
  5. url:'/vodtype/fyclass-fypage.html',
  6. searchUrl: '/rss.xml?wd=**',
  7. class_parse: '.stui-header__menu li:gt(0):lt(5);a&&Text;a&&href;.*/(.*?).html',
  8. lazy: $js.toString(() => {
  9. let js = 'try{function requestApix(callback){$.post(\"api.php\",{vid:getQueryString(\"vid\")},function(result){callback(result.data.url);},\"json\");}requestApix(function(data){location.href=sign(data);})}catch(e){}location.href=document.querySelector(\"#playleft iframe\").src;';
  10. input = {
  11. parse: 1,
  12. url: input,
  13. click: js,
  14. js: js
  15. };
  16. }),
  17. 搜索: $js.toString(() => {
  18. let html = post(input.split('?')[0], {body: input.split('?')[1]});
  19. let items = pdfa(html, 'rss&&item');
  20. // log(items);
  21. let d = [];
  22. items.forEach(it => {
  23. it = it.replace(/title|link|author|pubdate|description/g, 'p');
  24. let url = pdfh(it, 'p:eq(1)&&Text');
  25. d.push({
  26. title: pdfh(it, 'p&&Text'),
  27. url: url,
  28. desc: pdfh(it, 'p:eq(3)&&Text'),
  29. content: pdfh(it, 'p:eq(2)&&Text'),
  30. pic_url: "",
  31. });
  32. });
  33. setResult(d);
  34. }),
  35. 二级: {
  36. title: '.stui-content__detail .title&&Text;.stui-content__detail p:eq(3)&&Text',
  37. img: '.lazyload&&data-original||data-src||src',
  38. desc: '.module-info-item:eq(-2)&&Text;.stui-content__detail p:eq(2)&&Text;.stui-content__detail p:eq(0)&&Text;.module-info-item:eq(2)&&Text;.module-info-item:eq(1)&&Text',
  39. content: '.detail&&Text',
  40. tabs:'.stui-vodlist__head h3',
  41. lists:'.stui-content__playlist:eq(#id)&&li'
  42. },
  43. }