好恐怖.js 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. var rule = {
  2. title:'好恐怖',
  3. host:'https://www.hkbdy.com',
  4. //hostJs:'print(HOST);let html=request(HOST,{headers:{"User-Agent":PC_UA}});let src = jsp.pdfh(html,"center&&h1:eq(0)&&a&&href");print(src);HOST=src',
  5. homeUrl: '/',
  6. url: '/fyclass/index_fypage.html[/fyclass/index.html]',
  7. //https://www.hkbdy.com/taiwanju/index_6.html
  8. //filter_url:'{{fl.class}}',
  9. filter:{
  10. },
  11. //searchUrl: '/?s=**',
  12. searchUrl: '/e/search/result/?searchid=**',
  13. searchable:2,
  14. quickSearch:0,
  15. filterable:0,
  16. headers:{
  17. 'User-Agent': 'PC_UA',
  18. 'Cookie':''
  19. },
  20. timeout:5000,
  21. class_name: '国产剧&港剧&动作片&喜剧片&爱情片&科幻片&恐怖片&战争片&剧情片&微电影&记录片&高清&动漫&台湾&日本&韩国&欧美&泰国&海外',
  22. class_url:'guochanju&gangju&dongzuopian&xijupian&aiqingpian&kehuanpian&kongbupian&zhanzhengpian&juqingpian&weidianying&m_jlp&gaoqing&gaoqing&donghuapian&taiwanju&riju&hanju&oumeiju&taiguoju&haiwaiju',
  23. //class_parse: '.nav ul li:gt(0):lt(11);a&&Text;a&&href;.*/(.*?).html',
  24. play_parse:true,
  25. play_json:[{
  26. re:'*',
  27. json:{
  28. parse:0,
  29. jx:0
  30. }
  31. }],
  32. lazy:'',
  33. limit:6,
  34. 推荐:'body&&.box li:has(img);img&&alt;img&&src;.time&&Text;a&&href',
  35. //一级:'.channel-content&&li;img&&alt;img&&src;.listtype&&Text;a&&href',
  36. 一级: `js:
  37. pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
  38. var d = [];
  39. var html = request(input);
  40. var list = pdfa(html, '.channel-content&&li');
  41. list.forEach(it => {
  42. d.push({
  43. title: String(pdfh(it, 'img&&alt')),
  44. //title: String(pdfh(it, 'a&&title')).match(/《([^》]*)》/),
  45. desc: pdfh(it, '.listtype&&Text') +"/"+pdfh(it, '.score&&Text')+"分",
  46. // pic_url: pdfh(it, '.card-img&&style'),
  47. pic_url: pd(it, 'img&&src'),
  48. url: pd(it, 'a&&href')
  49. });
  50. })
  51. setResult(d);
  52. `,
  53. 二级:{
  54. title:"#movie-info div h1&&Text;#movie-info&&li:eq(5)&&Text",
  55. img:"#movie-info&&picture img&&src",
  56. 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;.mb-2&&p:eq(1) a&&Text',//演员4 导演5
  57. content:'.introduction&&p:eq(0)&&Text',
  58. tabs:`js:
  59. pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
  60. TABS=[]
  61. let d = pdfa(html, '#content&&li');
  62. let tabsa = [];
  63. let tabsq = [];
  64. let tabsm = false;
  65. let tabse = false;
  66. d.forEach(function(it) {
  67. let burl = pdfh(it, 'a&&href');
  68. if (burl.startsWith("magnet")){
  69. tabsm = true;
  70. }else if (burl.startsWith("thunder")){
  71. tabse = true;
  72. }
  73. });
  74. if (tabsm === true){
  75. TABS.push("电驴");
  76. }
  77. if (tabse === true){
  78. TABS.push("迅雷");
  79. }
  80. if (false && tabsa.length + tabsq.length > 1){
  81. TABS.push("選擇右側綫路");
  82. }
  83. let tmpIndex;
  84. tmpIndex=1;
  85. tabsa.forEach(function(it){
  86. TABS.push(it + tmpIndex);
  87. tmpIndex = tmpIndex + 1;
  88. });
  89. tmpIndex=1;
  90. tabsq.forEach(function(it){
  91. TABS.push(it + tmpIndex);
  92. tmpIndex = tmpIndex + 1;
  93. });
  94. log('mp4us TABS >>>>>>>>>>>>>>>>>>' + TABS);
  95. `,
  96. lists:`js:
  97. log(TABS);
  98. pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
  99. LISTS = [];
  100. let d = pdfa(html, '#content&&li');
  101. let lista = [];
  102. let listq = [];
  103. let listm = [];
  104. let liste = [];
  105. d.forEach(function(it){
  106. let burl = pdfh(it, 'a&&href');
  107. let title = pdfh(it, 'a&&Text');
  108. log('title >>>>>>>>>>>>>>>>>>>>>>>>>>' + title);
  109. log('burl >>>>>>>>>>>>>>>>>>>>>>>>>>' + burl);
  110. let loopresult = burl;
  111. if (burl.startsWith("magnet")){
  112. listm.push(loopresult);
  113. }else if (burl.startsWith("thunder")){
  114. liste.push(loopresult);
  115. }
  116. });
  117. if (listm.length>0){
  118. LISTS.push(listm.reverse());
  119. }
  120. if (liste.length>0){
  121. LISTS.push(liste.slice());
  122. }
  123. `,
  124. },
  125. 搜索:`&content&&.entry-thumb-left;img&&src;.entry-rating&&Text;a&&href `,
  126. }