rrdyw.js 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. var rule = {
  2. title: 'RRDY網',
  3. host: 'https://www.rrdynb.com',
  4. homeUrl: '/',
  5. url: '/fyclass_fypage.html?',
  6. filter_url: '{{fl.class}}',
  7. filter: {},
  8. searchUrl: '/plus/search.php?q=**&pagesize=10&submit=',
  9. searchable: 2,
  10. quickSearch: 1,
  11. filterable: 0,
  12. headers: {
  13. 'User-Agent': 'PC_UA',
  14. 'Cookie': ''
  15. },
  16. timeout: 5000,
  17. class_name: '影视&電視劇&老電影&動漫',
  18. class_url: 'movie/list_2&dianshiju/list_6&zongyi/list_10&dongman/list_13',
  19. play_parse: true,
  20. play_json: [{
  21. re: '*',
  22. json: {
  23. parse: 0,
  24. jx: 0
  25. }
  26. }],
  27. lazy: '',
  28. limit: 6,
  29. 推荐: '',
  30. 一级: 'li:has(img);img&&alt;img&&data-original;;a&&href',
  31. 二级: {
  32. title: "h1&&Text",
  33. img: "img&&src",
  34. desc: "",
  35. content: "span&&Text",
  36. tabs: `js: pdfh = jsp.pdfh;
  37. pdfa = jsp.pdfa;
  38. pd = jsp.pd;
  39. TABS = []
  40. let d = pdfa(html, 'span a');
  41. let tabsa = [];
  42. let tabsq = [];
  43. let tabsm = false;
  44. let tabse = false;
  45. d.forEach(function(it) {
  46. let burl = pdfh(it, 'a&&href');
  47. if (burl.startsWith("https://www.aliyundrive.com/s/") || burl.startsWith("https://www.alipan.com/s/")){
  48. tabsa.push("阿里雲盤");
  49. } else if (burl.startsWith("https://pan.quark.cn/s/")) {
  50. tabsq.push("夸克網盤");
  51. } else if (burl.startsWith("magnet")) {
  52. tabsm = true;
  53. } else if (burl.startsWith("ed2k")) {
  54. tabse = true;
  55. }
  56. });
  57. if (tabsm === true) {
  58. TABS.push("磁力");
  59. }
  60. if (tabse === true) {
  61. TABS.push("電驢");
  62. }
  63. let tmpIndex;
  64. tmpIndex = 1;
  65. tabsa.forEach(function(it) {
  66. TABS.push(it + tmpIndex);
  67. tmpIndex = tmpIndex + 1;
  68. });
  69. tmpIndex = 1;
  70. tabsq.forEach(function(it) {
  71. TABS.push(it + tmpIndex);
  72. tmpIndex = tmpIndex + 1;
  73. });
  74. log('alyps TABS >>>>>>>>>>>>>>>>>>' + TABS);`,
  75. lists: `js: log(TABS);
  76. pdfh = jsp.pdfh;
  77. pdfa = jsp.pdfa;
  78. pd = jsp.pd;
  79. LISTS = [];
  80. let d = pdfa(html, 'span a');
  81. let lista = [];
  82. let listq = [];
  83. let listm = [];
  84. let liste = [];
  85. d.forEach(function(it) {
  86. let burl = pdfh(it, 'a&&href');
  87. let title = pdfh(it, 'a&&Text');
  88. log('alyps title >>>>>>>>>>>>>>>>>>>>>>>>>>' + title);
  89. log('alyps burl >>>>>>>>>>>>>>>>>>>>>>>>>>' + burl);
  90. let loopresult = title + '$' + burl;
  91. if (burl.startsWith("https://www.aliyundrive.com/s/") || burl.startsWith("https://www.alipan.com/s/")){
  92. if (TABS.length == 1) {
  93. burl = "http://127.0.0.1:9978/proxy?do=ali&type=push&confirm=0&url=" + encodeURIComponent(burl);
  94. } else {
  95. burl = "http://127.0.0.1:9978/proxy?do=ali&type=push&url=" + encodeURIComponent(burl);
  96. }
  97. loopresult = title + '$' + burl;
  98. lista.push(loopresult);
  99. } else if (burl.startsWith("https://pan.quark.cn/s/")) {
  100. if (TABS.length == 1) {
  101. burl = burl.replace("?entry=sjss", ""),
  102. burl = "http://127.0.0.1:9978/proxy?do=quark&type=push&confirm=0&url=" + encodeURIComponent(burl);
  103. } else {
  104. burl = burl.replace("?entry=sjss", ""),
  105. burl = "http://127.0.0.1:9978/proxy?do=quark&type=push&url=" + encodeURIComponent(burl);
  106. }
  107. loopresult = title + '$' + burl;
  108. listq.push(loopresult);
  109. } else if (burl.startsWith("magnet")) {
  110. listm.push(loopresult);
  111. } else if (burl.startsWith("ed2k")) {
  112. liste.push(loopresult);
  113. }
  114. });
  115. if (listm.length > 0) {
  116. LISTS.push(listm.reverse());
  117. }
  118. if (liste.length > 0) {
  119. LISTS.push(liste.reverse());
  120. }
  121. lista.forEach(function(it) {
  122. LISTS.push([it]);
  123. });
  124. listq.forEach(function(it) {
  125. LISTS.push([it]);
  126. });`,
  127. },
  128. 搜索: 'li:has(img);h2&&Text;img&&data-original;.tags&&Text;a&&href',
  129. }