耐看.js 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. var rule = {
  2. title: '耐看',
  3. host: 'https://nkvod.com',
  4. url: '/show/fyclass--------fypage---.html',
  5. searchUrl: '/index.php/rss/index.xml?wd=**',
  6. searchable: 2,
  7. quickSearch: 0,
  8. filterable: 0,
  9. filter: '',
  10. filter_url: '',
  11. filter_def: {},
  12. headers: {
  13. 'User-Agent': 'MOBILE_UA',
  14. },
  15. timeout: 5000,
  16. class_parse: '.flex.around&&li;a&&Text;a&&href;.*/(.*?).html',
  17. cate_exclude: '',
  18. play_parse: true,
  19. lazy: "js:\n input = { parse: 1, url: input, js: '' };",
  20. double: true,
  21. 推荐: '*',
  22. 一级: 'body&&.public-list-box;a&&title;img&&data-src;.public-list-subtitle&&Text;a&&href',
  23. 二级: {
  24. title: 'h3&&Text;.hl-ma0&&Text',
  25. img: '.mask-1&&data-src',
  26. desc: '.detail-info .slide-info:eq(1)--strong&&Text;.deployment.none.cor5&&span&&Text;.deployment.none.cor5&&span:eq(2)&&Text;.detail-info .slide-info:eq(3)--strong&&Text;.detail-info .slide-info:eq(2)--strong&&Text',
  27. content: '#height_limit&&Text',
  28. tabs: '.anthology-tab a',
  29. lists: '.anthology-list-play:eq(#id)&&li',
  30. tab_text: 'body&&Text',
  31. list_text: 'body&&Text',
  32. list_url: 'a&&href',
  33. },
  34. 搜索: $js.toString(() => {
  35. let html = request(input);
  36. let items = pdfa(html, 'rss&&item');
  37. // log(items);
  38. let d = [];
  39. items.forEach(it => {
  40. it = it.replace(/title|link|author|pubdate|description/g, 'p');
  41. let url = pdfh(it, 'p:eq(1)&&Text');
  42. d.push({
  43. title: pdfh(it, 'p&&Text'),
  44. url: url,
  45. desc: pdfh(it, 'p:eq(3)&&Text'),
  46. content: pdfh(it, 'p:eq(2)&&Text'),
  47. pic_url: "",
  48. });
  49. });
  50. setResult(d);
  51. }),
  52. }