4khdr.js 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. var rule = {
  2. title:'4KHDR[磁]',
  3. host:'https://www.4khdr.cn',
  4. homeUrl: "/forum.php?mod=forumdisplay&fid=2&page=1",
  5. url: '/forum.php?mod=forumdisplay&fid=2&filter=typeid&typeid=fyclass&page=fypage',
  6. filter_url:'{{fl.class}}',
  7. filter:{
  8. },
  9. searchUrl: '',
  10. searchable:0,
  11. quickSearch:0,
  12. filterable:0,
  13. headers:{
  14. 'User-Agent': 'PC_UA'
  15. },
  16. timeout:5000,
  17. class_name: "4K电影&4K美剧&4K华语&4K动画&4K纪录片&4K日韩印&蓝光电影&蓝光美剧&蓝光华语&蓝光动画&蓝光日韩印",
  18. class_url:"3&8&15&6&11&4&29&31&33&32&34",
  19. play_parse:false,
  20. lazy:'',
  21. limit:6,
  22. 推荐:'ul#waterfall li;a&&title;img&&src;div.auth.cl&&Text;a&&href',
  23. 一级:'ul#waterfall li;a&&title;img&&src;div.auth.cl&&Text;a&&href',
  24. 二级:{
  25. title:"#thead_subject&&Text",
  26. img:"img.zoom&&src",
  27. desc:'td[id^="postmessage_"] font&&Text',
  28. content:'td[id^="postmessage_"] font&&Text',
  29. tabs:`js:
  30. pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
  31. TABS=[]
  32. var d = pdfa(html, 'table.t_table');
  33. let magnetIndex=0;
  34. let aliIndex=0;
  35. d.forEach(function(it) {
  36. let burl = pdfh(it, 'a&&href');
  37. log("burl >>>>>>" + burl);
  38. if (burl.startsWith("https://www.aliyundrive.com/s/")){
  39. let result = 'aliyun' + aliIndex;
  40. aliIndex = aliIndex + 1;
  41. TABS.push(result);
  42. }
  43. });
  44. d.forEach(function(it) {
  45. let burl = pdfh(it, 'a&&href');
  46. log("burl >>>>>>" + burl);
  47. if (burl.startsWith("magnet")){
  48. let result = 'magnet' + magnetIndex;
  49. magnetIndex = magnetIndex + 1;
  50. TABS.push(result);
  51. }
  52. });
  53. log('TABS >>>>>>>>>>>>>>>>>>' + TABS);
  54. `,
  55. lists:`js:
  56. log(TABS);
  57. pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
  58. LISTS = [];
  59. var d = pdfa(html, 'table.t_table');
  60. TABS.forEach(function(tab) {
  61. log('tab >>>>>>>>' + tab);
  62. if (/^aliyun/.test(tab)) {
  63. let targetindex = parseInt(tab.substring(6));
  64. let index = 0;
  65. d.forEach(function(it){
  66. let burl = pdfh(it, 'a&&href');
  67. if (burl.startsWith("https://www.aliyundrive.com/s/")){
  68. if (index == targetindex){
  69. let title = pdfh(it, 'a&&Text');
  70. log('title >>>>>>>>>>>>>>>>>>>>>>>>>>' + title);
  71. burl = "http://127.0.0.1:9978/proxy?do=ali&type=push&url=" + encodeURIComponent(burl);
  72. log('burl >>>>>>>>>>>>>>>>>>>>>>>>>>' + burl);
  73. let loopresult = title + '$' + burl;
  74. LISTS.push([loopresult]);
  75. }
  76. index = index + 1;
  77. }
  78. });
  79. }
  80. });
  81. TABS.forEach(function(tab) {
  82. log('tab >>>>>>>>' + tab);
  83. if (/^magnet/.test(tab)) {
  84. let targetindex = parseInt(tab.substring(6));
  85. let index = 0;
  86. d.forEach(function(it){
  87. let burl = pdfh(it, 'a&&href');
  88. if (burl.startsWith("magnet")){
  89. if (index == targetindex){
  90. let title = pdfh(it, 'a&&Text');
  91. log('title >>>>>>>>>>>>>>>>>>>>>>>>>>' + title);
  92. log('burl >>>>>>>>>>>>>>>>>>>>>>>>>>' + burl);
  93. let loopresult = title + '$' + burl;
  94. LISTS.push([loopresult]);
  95. }
  96. index = index + 1;
  97. }
  98. });
  99. }
  100. });
  101. `,
  102. },
  103. 搜索:'',
  104. }