dydhhy.js 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. var rule = {
  2. title: 'dydhhy',
  3. host: 'http://www.dydhhy.com',
  4. homeUrl: '/',
  5. url: '/tag/fyclass/page/fypage?',
  6. filter_url: '{{fl.class}}',
  7. filter: {},
  8. searchUrl: '/?s=**',
  9. searchable: 2,
  10. quickSearch: 1,
  11. filterable: 0,
  12. headers: {
  13. 'User-Agent': 'MOBILE_UA',
  14. 'Cookie': ''
  15. },
  16. timeout: 5000,
  17. class_name: '电视剧&电影&美剧&韩剧&日剧&英剧&2023&2022&2021',
  18. class_url: 'tv&movie&美剧&韩剧&日剧&英剧&2023&2022&2021',
  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. 推荐: 'div.clear:gt(1):has(img);.entry-title&&Text;img&&src;;a&&href',
  30. 一级: 'div.clear:gt(1):has(img);.entry-title&&Text;img&&src;;a&&href',
  31. 二级: {
  32. title: ".single-excerpt&&Text",
  33. img: "img&&src",
  34. desc: ".entry-date&&Text",
  35. content: "p&&Text",
  36. tabs: `js: pdfh = jsp.pdfh;
  37. pdfa = jsp.pdfa;
  38. pd = jsp.pd;
  39. TABS=[]
  40. let d = pdfa(html, 'fieldset p 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. if (false && tabsa.length + tabsq.length > 1){
  64. TABS.push("選擇右側綫路");
  65. }
  66. let tmpIndex;
  67. tmpIndex=1;
  68. tabsa.forEach(function(it){
  69. TABS.push(it + tmpIndex);
  70. tmpIndex = tmpIndex + 1;
  71. });
  72. tmpIndex=1;
  73. tabsq.forEach(function(it){
  74. TABS.push(it + tmpIndex);
  75. tmpIndex = tmpIndex + 1;
  76. });
  77. log('xzys TABS >>>>>>>>>>>>>>>>>>' + TABS);`,
  78. lists: `js: log(TABS);
  79. pdfh = jsp.pdfh;
  80. pdfa = jsp.pdfa;
  81. pd = jsp.pd;
  82. LISTS = [];
  83. let d = pdfa(html, 'fieldset p a');
  84. let lista = [];
  85. let listq = [];
  86. let listm = [];
  87. let liste = [];
  88. d.forEach(function(it){
  89. let burl = pdfh(it, 'a&&href');
  90. let title = pdfh(it, 'a&&Text');
  91. log('dygang title >>>>>>>>>>>>>>>>>>>>>>>>>>' + title);
  92. log('dygang burl >>>>>>>>>>>>>>>>>>>>>>>>>>' + burl);
  93. let loopresult = title + '$' + burl;
  94. if (burl.startsWith("https://www.aliyundrive.com/s/") || burl.startsWith("https://www.alipan.com/s/")){
  95. if (true){
  96. if (TABS.length==1){
  97. burl = "http://127.0.0.1:9978/proxy?do=ali&type=push&confirm=0&url=" + encodeURIComponent(burl);
  98. }else{
  99. burl = "http://127.0.0.1:9978/proxy?do=ali&type=push&url=" + encodeURIComponent(burl);
  100. }
  101. }else{
  102. burl = "push://" + burl;
  103. }
  104. loopresult = title + '$' + burl;
  105. lista.push(loopresult);
  106. }else if (burl.startsWith("https://pan.quark.cn/s/")){
  107. if (true){
  108. if (TABS.length==1){
  109. burl = "http://127.0.0.1:9978/proxy?do=quark&type=push&confirm=0&url=" + encodeURIComponent(burl);
  110. }else{
  111. burl = "http://127.0.0.1:9978/proxy?do=quark&type=push&url=" + encodeURIComponent(burl);
  112. }
  113. }else{
  114. burl = "push://" + burl;
  115. }
  116. loopresult = title + '$' + burl;
  117. listq.push(loopresult);
  118. }else if (burl.startsWith("magnet")){
  119. listm.push(loopresult);
  120. }else if (burl.startsWith("ed2k")){
  121. liste.push(loopresult);
  122. }
  123. });
  124. if (listm.length>0){
  125. LISTS.push(listm);
  126. }
  127. if (liste.length>0){
  128. LISTS.push(liste);
  129. }
  130. if (false && lista.length + listq.length > 1){
  131. LISTS.push(["選擇右側綫路,或3秒後自動跳過$http://127.0.0.1:10079/delay/"]);
  132. }
  133. lista.forEach(function(it){
  134. LISTS.push([it]);
  135. });
  136. listq.forEach(function(it){
  137. LISTS.push([it]);
  138. });`,
  139. }, 搜索: 'div.clear:gt(0):has(img);img&&alt;img&&data-src;;a&&href',
  140. }