东风磁力.js 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. var rule = {
  2. 模板: '自动',
  3. title:'高清族',
  4. host:'https://www.hdzu.cc/',//https://www.y81s.com/
  5. homeUrl: 'https://www.hdzu.cc/?page=fypage',
  6. url: '/movie/map?class=fyclass&page=fypage',
  7. filter_url:'{{fy.cateId}}&{{fl.class}}&{{fl.year}}&{{fl.area}}&{{fy.by}}',
  8. searchUrl: 'movie/filter?act=title&wd=**',
  9. //searchUrl: '/?s=**',
  10. searchable:2,
  11. quickSearch:0,
  12. filterable:0,
  13. headers:{
  14. 'User-Agent': 'PC_UA',
  15. 'Cookie':''
  16. },
  17. timeout:5000,
  18. class_name: '电影&电视剧',
  19. class_url:'1&5',
  20. play_parse:true,
  21. play_json:[{
  22. re:'*',
  23. json:{
  24. parse:0,
  25. jx:0
  26. }
  27. }],
  28. lazy:'',
  29. limit:6,
  30. 推荐:'body&&ul li .media-left;img&&alt;img&&src;.pull-right&&Text;a&&href',
  31. 一级:'body&&ul li .media-left;img&&alt;img&&src;.pull-right&&Text;a&&href',
  32. //下面的写法也正确
  33. /*一级: `js:
  34. pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
  35. var d = [];
  36. var html = request(input);
  37. var list = pdfa(html, 'body&&ul li .media-left');//定位到media-lef这里,下一级开始截取数
  38. list.forEach(it => {
  39. d.push({
  40. title: pdfh(it, 'img&&alt'),
  41. desc: pdfh(it, '.pull-right&&Textt') ,
  42. pic_url: pd(it, 'img&&src'),
  43. url: pd(it, 'a&&href')
  44. });
  45. })
  46. setResult(d);
  47. `,*/
  48. 二级:{
  49. title:"body&&.panel-body h1&&Text;body&&mt-10 p:eq(3)&&Text",
  50. img:"body&&.movie-pic img&&src",
  51. desc:'.mb-2&&p:eq(-4)&&Text;.mb-2&&p:eq(8)&&Text;.mb-2&&p:eq(5)&&Text;.mb-2&&p:eq(3) a&&Text;.col-md-8&&p:eq(1) a&&Text',//演员4 导演5
  52. content:'.topic-content&&p:eq(-3)&&Text',
  53. tabs:`js:
  54. pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
  55. TABS=[]
  56. let d = pdfa(html, 'body&&tbody td a');
  57. let tabsa = [];
  58. let tabsq = [];
  59. let tabsm = false;
  60. let tabse = false;
  61. d.forEach(function(it) {
  62. let burl = pdfh(it, 'a&&href');
  63. if (burl.startsWith("magnet")){
  64. tabsm = true;
  65. }else if (burl.startsWith("thunder")){
  66. tabse = true;
  67. }
  68. });
  69. if (tabsm === true){
  70. TABS.push("尤东风💠电驴");
  71. }
  72. if (tabse === true){
  73. TABS.push("尤东风💠迅雷");
  74. }
  75. if (false && tabsa.length + tabsq.length > 1){
  76. TABS.push("選擇右側綫路");
  77. }
  78. let tmpIndex;
  79. tmpIndex=1;
  80. tabsa.forEach(function(it){
  81. TABS.push(it + tmpIndex);
  82. tmpIndex = tmpIndex + 1;
  83. });
  84. tmpIndex=1;
  85. tabsq.forEach(function(it){
  86. TABS.push(it + tmpIndex);
  87. tmpIndex = tmpIndex + 1;
  88. });
  89. log('mp4us TABS >>>>>>>>>>>>>>>>>>' + TABS);
  90. `,
  91. lists:`js:
  92. log(TABS);
  93. pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
  94. LISTS = [];
  95. let d = pdfa(html, 'body&&tbody');
  96. let lista = [];
  97. let listq = [];
  98. let listm = [];
  99. let liste = [];
  100. d.forEach(function(it){
  101. let burl = pdfh(it, 'a&&href');
  102. let title = pdfh(it, 'a&&title');
  103. log('title >>>>>>>>>>>>>>>>>>>>>>>>>>' + title);
  104. log('burl >>>>>>>>>>>>>>>>>>>>>>>>>>' + burl);
  105. let loopresult = burl;
  106. if (burl.startsWith("magnet")){
  107. listm.push(loopresult);
  108. }else if (burl.startsWith("thunder")){
  109. liste.push(loopresult);
  110. }
  111. });
  112. if (listm.length>0){
  113. LISTS.push(listm.reverse());
  114. }
  115. if (liste.length>0){
  116. LISTS.push(liste.slice());
  117. }
  118. `,
  119. },
  120. //搜索:`&content&&.entry-thumb-left;img&&src;.entry-rating&&Text;a&&href `,
  121. filter:{
  122. "1":[{"key":"class","name":"类型","value":[{"n":"全部","v":""},{"n":"动作","v":"type=动作"},{"n":"剧情","v":"type=剧情"},{"n":"喜剧","v":"type=喜剧"},{"n":"惊悚","v":"type=惊悚"},{"n":"动作","v":"type=动作"},{"n":"爱情","v":"type=爱情"},{"n":"犯罪","v":"type=犯罪"},{"n":"恐怖","v":"type=恐怖"},{"n":"冒险","v":"type=冒险"},{"n":"悬疑","v":"type=悬疑"},{"n":"科幻","v":"type=科幻"},{"n":"家庭","v":"11"},{"n":"动画","v":"type=动画"},{"n":"动画","v":"13"},{"n":"战争","v":"type=战争"},{"n":"历史","v":"type=历史"},{"n":"传记","v":"type=传记"},{"n":"音乐","v":"type=音乐"},{"n":"歌舞","v":"type=歌舞"},{"n":"武侠","v":"type=武侠"},{"n":"西部","v":"type=西部"},{"n":"灾难","v":"type=灾难"},{"n":"古装","v":"type=古装"},{"n":"情色","v":"type=色情"},{"n":"同性","v":"type=同性"},{"n":"纪录片","v":"26"}]},{"key":"area","name":"地区","value":[{"n":"全部","v":""},{"n":"大陆","v":"area=大陆"},{"n":"香港","v":"area=香港"},{"n":"台湾","v":"area=台湾"},{"n":"欧美","v":"area=欧美"},{"n":"美国","v":"area=美国"},{"n":"日本","v":"area=日本"},{"n":"韩国","v":"area=韩国"},{"n":"英国","v":"area=英国"},{"n":"法国","v":"area=法国"},{"n":"德国","v":"area=德国"},{"n":"印度","v":"area=印度"},{"n":"area=大陆","v":"11"},{"n":"巴西","v":"area=巴西"},{"n":"加拿大","v":"area=加拿大"},{"n":"俄罗斯","v":"area=俄罗斯"},{"n":"意大利","v":"area=意大利"},{"n":"丹麦","v":"area丹麦"},{"n":"爱尔兰","v":"area=爱尔兰"},{"n":"西班牙","v":"area=西班牙"},{"n":"澳大利亚","v":"area=澳大利亚"},{"n":"瑞典","v":"area=瑞典"}]},{"key":"year","name":"年份","value":[{"n":"全部","v":""},{"n":"2024","v":"year=2024"},{"n":"2023","v":"year=2023"},{"n":"2022","v":"year=2022"},{"n":"2021","v":"year=2021"},{"n":"2020","v":"year=2020"},{"n":"2010年代","v":"year=2010%2C2019"},{"n":"2010年代","v":"2000%2C2009"},{"n":"90年代","v":"year=1990%2C1999"},{"n":"80年代","v":"1980%2C1989"},{"n":"70年代","v":"year=1970%2C1979"},{"n":"60年代","v":"1960%2C1969"},{"n":"更早","v":"year=1%2C1959"}]},{"key":"by","name":"排序","value":[{"n":"全部","v":""},{"n":"热门","v":"sort=hotest"},{"n":"评分","v":"sort=rating"}]}],
  123. "5":[{"key":"class","name":"类型","value":[{"n":"全部","v":""},{"n":"动作","v":"type=动作"},{"n":"剧情","v":"type=剧情"},{"n":"喜剧","v":"type=喜剧"},{"n":"惊悚","v":"type=惊悚"},{"n":"动作","v":"type=动作"},{"n":"爱情","v":"type=爱情"},{"n":"犯罪","v":"type=犯罪"},{"n":"恐怖","v":"type=恐怖"},{"n":"冒险","v":"type=冒险"},{"n":"悬疑","v":"type=悬疑"},{"n":"科幻","v":"type=科幻"},{"n":"家庭","v":"11"},{"n":"动画","v":"type=动画"},{"n":"动画","v":"13"},{"n":"战争","v":"type=战争"},{"n":"历史","v":"type=历史"},{"n":"传记","v":"type=传记"},{"n":"音乐","v":"type=音乐"},{"n":"歌舞","v":"type=歌舞"},{"n":"武侠","v":"type=武侠"},{"n":"西部","v":"type=西部"},{"n":"灾难","v":"type=灾难"},{"n":"古装","v":"type=古装"},{"n":"情色","v":"type=色情"},{"n":"同性","v":"type=同性"},{"n":"纪录片","v":"26"}]},{"key":"area","name":"地区","value":[{"n":"全部","v":""},{"n":"大陆","v":"area=大陆"},{"n":"香港","v":"area=香港"},{"n":"台湾","v":"area=台湾"},{"n":"欧美","v":"area=欧美"},{"n":"美国","v":"area=美国"},{"n":"日本","v":"area=日本"},{"n":"韩国","v":"area=韩国"},{"n":"英国","v":"area=英国"},{"n":"法国","v":"area=法国"},{"n":"德国","v":"area=德国"},{"n":"印度","v":"area=印度"},{"n":"area=大陆","v":"11"},{"n":"巴西","v":"area=巴西"},{"n":"加拿大","v":"area=加拿大"},{"n":"俄罗斯","v":"area=俄罗斯"},{"n":"意大利","v":"area=意大利"},{"n":"丹麦","v":"area丹麦"},{"n":"爱尔兰","v":"area=爱尔兰"},{"n":"西班牙","v":"area=西班牙"},{"n":"澳大利亚","v":"area=澳大利亚"},{"n":"瑞典","v":"area=瑞典"}]},{"key":"year","name":"年份","value":[{"n":"全部","v":""},{"n":"2024","v":"year=2024"},{"n":"2023","v":"year=2023"},{"n":"2022","v":"year=2022"},{"n":"2021","v":"year=2021"},{"n":"2020","v":"year=2020"},{"n":"2010年代","v":"year=2010%2C2019"},{"n":"2010年代","v":"2000%2C2009"},{"n":"90年代","v":"year=1990%2C1999"},{"n":"80年代","v":"1980%2C1989"},{"n":"70年代","v":"year=1970%2C1979"},{"n":"60年代","v":"1960%2C1969"},{"n":"更早","v":"year=1%2C1959"}]},{"key":"by","name":"排序","value":[{"n":"全部","v":""},{"n":"热门","v":"sort=hotest"},{"n":"评分","v":"sort=rating"}]}]
  124. },
  125. }