红中磁力.js 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. var rule = {
  2. title:'磁力天堂',
  3. host:'https://www.clgod.xyz/',
  4. homeUrl: '',
  5. url: '/fyclass/index_fypage.html[/fyclass/]',
  6. filter:{
  7. },
  8. searchUrl: 'https://s.clgod.xyz/e/search/#show=title%2Cstars&keyboard=**;post',
  9. searchable:2,
  10. quickSearch:0,
  11. filterable:0,
  12. headers:{
  13. 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36 Edg/129.0.0.0',
  14. 'Cookie':''
  15. },
  16. timeout:5000,
  17. class_name: '电视剧&电影',
  18. class_url: 'tv&movie',
  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. 推荐:'.container-xl&&li:has(img);img&&alt;img&&src;.num&&Text;a&&href',
  30. 一级:`js:
  31. pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
  32. let d = [];
  33. let html = request(input);
  34. let list = pdfa(html, 'body&&.listauto:has(img)');
  35. list.forEach(it => {
  36. d.push({
  37. title: pdfh(it, 'img&&alt'),
  38. desc: pdfh(it, '.num&&Text') + '分/' + pdfh(it, 'body&&.listauto span:eq(1)&&Text'),
  39. pic_url: pd(it, 'img&&src'),
  40. url: pd(it, 'a&&href')
  41. });
  42. })
  43. setResult(d);
  44. `,
  45. 二级:{
  46. title:"div.container-fluid h1&&Text",
  47. img:".padd&&picture img&&src",
  48. desc:'.padd&&.pminfo span:eq(-5)&&Text',
  49. content:'.textc&&Text',
  50. tabs:`js:
  51. pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
  52. TABS=[]
  53. let d = pdfa(html, 'body&&.list-inline li');
  54. let tabsm = false;
  55. let tabse = false;
  56. d.forEach(function(it) {
  57. let burl = pdfh(it, 'a&&href');
  58. if (burl.startsWith("magnet")){
  59. tabsm = true;
  60. }else if (burl.startsWith("thunder")){
  61. tabse = true;
  62. }
  63. });
  64. if (tabsm === true){
  65. TABS.push("尤东风💠磁力");
  66. }
  67. if (tabse === true){
  68. TABS.push("尤东风💠迅雷");
  69. }
  70. log('mp4us TABS >>>>>>>>>>>>>>>>>>' + TABS);
  71. `,
  72. lists:`js:
  73. log(TABS);
  74. pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
  75. LISTS = [];
  76. let d = pdfa(html, 'body&&.list-inline li');
  77. let listm = [];
  78. let liste = [];
  79. d.forEach(function(it){
  80. let burl = pdfh(it, 'a&&href');
  81. let title = pdfh(it, '.na&&Text');
  82. log('title >>>>>>>>>>>>>>>>>>>>>>>>>>' + title);
  83. log('burl >>>>>>>>>>>>>>>>>>>>>>>>>>' + burl);
  84. let loopresult = title + '$' +burl;
  85. if (burl.startsWith("magnet")){
  86. listm.push(loopresult);
  87. }else if (burl.startsWith("ed2k")){
  88. liste.push(loopresult);
  89. }
  90. });
  91. if (listm.length>0){
  92. LISTS.push(listm.reverse());
  93. }
  94. if (liste.length>0){
  95. LISTS.push(liste.reverse());
  96. }
  97. `,
  98. },
  99. 搜索:`body&&.listauto;b&&Text;img&&data-src;.r&&Text;a&&href`,
  100. }