meijumi.js 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  1. var rule = {
  2. title:'美剧迷[磁]',
  3. host:'https://www.meijumi.net',
  4. //homeUrl:'/',
  5. //url: '/fyclass/page/fypage/?',
  6. homeUrl:'https://www.meijumi.net/',
  7. url: 'https://www.meijumi.net/fyclass/page/fypage/?',
  8. filter_url:'{{fl.class}}',
  9. filter:{
  10. },
  11. searchUrl: 'https://www.meijumi.net/?s=**',
  12. searchable:2,
  13. quickSearch:0,
  14. filterable:0,
  15. headers:{
  16. 'User-Agent': 'PC_UA',
  17. 'Accept': '*/*',
  18. 'Referer': 'https://www.meijumi.net/'
  19. },
  20. timeout:5000,
  21. class_name:'最近更新&美剧&灵异/惊悚&魔幻/科幻&罪案/动作谍战&剧情/历史&喜剧&律政/医务&动漫/动画&纪录片&综艺/真人秀&英剧&韩剧',
  22. class_url:'news&usa&usa/xuanyi&usa/mohuan&usa/zuian&usa/qinggan&usa/xiju&usa/yiwu&usa/katong&usa/jilu&usa/zongyi&en&hanju',
  23. play_parse:true,
  24. play_json:[{
  25. re:'*',
  26. json:{
  27. parse:0,
  28. jx:0
  29. }
  30. }],
  31. lazy:`js:
  32. input = panPlay(input,playObj.flag)
  33. `,
  34. limit:6,
  35. 推荐:'',
  36. 推荐:`js:
  37. pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
  38. let d = [];
  39. let html = request(input);
  40. let items;
  41. items = pdfa(html, 'main#main div.hd ul li:has(>a>img)');
  42. items.forEach(it => {
  43. let burl = rule.homeUrl.replace("https://www.meijumi.net/","") + pd(it, 'a&&href').replace(rule.host, "https://www.meijumi.net");
  44. d.push({
  45. title: pdfh(it, 'li p&&Text'),
  46. desc: '',
  47. pic_url: pd(it, 'img&&src', HOST),
  48. url: burl
  49. });
  50. });
  51. items = pdfa(html, 'main#main div.hd div.huandeng span:has(>a>img)');
  52. if (typeof items !== "undefined") {
  53. items.forEach(it => {
  54. let burl = rule.homeUrl.replace("https://www.meijumi.net/","") + pd(it, 'a&&href').replace(rule.host, "https://www.meijumi.net");
  55. d.push({
  56. title: pdfh(it, 'span p&&Text'),
  57. desc: '',
  58. pic_url: pd(it, 'img&&src', HOST),
  59. url: burl
  60. });
  61. });
  62. }
  63. items = pdfa(html, 'main#main div#pingbi_gg div:has(>div>a>img)');
  64. if (typeof items !== "undefined") {
  65. items.forEach(it => {
  66. let burl = rule.homeUrl.replace("https://www.meijumi.net/","") + pd(it, 'a&&href').replace(rule.host, "https://www.meijumi.net");
  67. d.push({
  68. title: pdfh(it, 'a&&title'),
  69. desc: pdfh(it, 'div&&span b&&Text'),
  70. pic_url: pd(it, 'img&&src', HOST),
  71. url: burl
  72. });
  73. });
  74. }
  75. items = pdfa(html, 'main#main div#pingbi_gg div:has(>header>div>a)');
  76. if (typeof items !== "undefined") {
  77. items.forEach(it => {
  78. let burl = rule.homeUrl.replace("https://www.meijumi.net/","") + pd(it, 'header a&&href').replace(rule.host, "https://www.meijumi.net");
  79. d.push({
  80. title: pdfh(it, 'header a&&Text'),
  81. desc: pdfh(it, 'header&&div span&&Text'),
  82. pic_url: pd(it, 'figure img&&src', HOST),
  83. url: burl
  84. });
  85. });
  86. }
  87. setResult(d);
  88. `,
  89. 一级:'',
  90. 一级:`js:
  91. pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
  92. let d = [];
  93. if (MY_CATE !== "news" ){
  94. let html = request(input);
  95. let list = pdfa(html, 'div#post_list_box article');
  96. list.forEach(it => {
  97. let burl = rule.homeUrl.replace("https://www.meijumi.net/","") + pd(it, 'header a&&href').replace(rule.host, "https://www.meijumi.net");
  98. d.push({
  99. title: pdfh(it, 'header a&&Text'),
  100. desc: pdfh(it, 'div.entry-content span:eq(1)&&Text'),
  101. pic_url: pd(it, 'figure img&&src', HOST),
  102. url: burl
  103. });
  104. })
  105. }else{
  106. input = rule.homeUrl + MY_CATE + '/';
  107. let html = request(input);
  108. let list = pdfa(html, 'article ol&&li');
  109. list.forEach(it => {
  110. let burl = rule.homeUrl.replace("https://www.meijumi.net/","") + pd(it, 'a&&href').replace(rule.host, "https://www.meijumi.net");
  111. d.push({
  112. title: pdfh(it, 'a&&Text'),
  113. desc: pdfh(it, 'li&&span:eq(3)&&Text') + ' / 更新' + pdfh(it, 'li&&span:eq(1)&&Text'),
  114. pic_url: '',
  115. url: burl
  116. });
  117. })
  118. }
  119. setResult(d);
  120. `,
  121. 二级:{
  122. title:"article&&header&&h1&&Text",
  123. img:"article div.single-content img&&src",
  124. desc:"article div.single-content blockquote&&Text",
  125. content:"article div.single-content table&&Text",
  126. tabs:`js:`,
  127. lists:`js:
  128. log(TABS);
  129. pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
  130. let listurl = [];
  131. let d = pdfa(html, 'article div.single-content&&p:has(>a)');
  132. d.forEach(function(it) {
  133. let playUrls = pdfa(it, 'a');
  134. let title="";
  135. playUrls.forEach(function(playUrl) {
  136. let purl = pdfh(playUrl, 'a&&href');
  137. if (true || title === ""){
  138. title = pdfh(playUrl, 'a&&Text');
  139. }
  140. if (purl.startsWith("magnet")){
  141. let magfn = title;
  142. try {
  143. magfn = purl.match(/(^|&)dn=([^&]*)(&|$)/)[2];
  144. }catch(e){
  145. magfn = title;
  146. }
  147. let resolution = "unknown";
  148. try {
  149. resolution = magfn.match(/(1080|720|2160|4k|4K)/)[1];
  150. }catch(e){
  151. resolution = "unknown";
  152. }
  153. magfn = resolution + "." + magfn;
  154. log("tabs magnet filename>>>>>>>>>>>" + magfn);
  155. }else if (purl.startsWith("https://www.aliyundrive.com/s/") || purl.startsWith("https://www.alipan.com/s/")){
  156. listurl.push(purl);
  157. }else if (purl.startsWith("https://pan.quark.cn/s/")){
  158. listurl.push(purl);
  159. }
  160. });
  161. });
  162. if (listurl.length){
  163. initPan();
  164. let alistVod = panDetailContent(vod ,listurl);
  165. TABS = alistVod.tabs
  166. LISTS = alistVod.lists
  167. detailError = alistVod.error
  168. }
  169. `,
  170. },
  171. 搜索:'ul.search-page article;h2&&Text;a img&&src;div.entry-content span:eq(1)&&Text;a&&href;div.entry-content div.archive-content&&Text',
  172. }