异世界.js 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278
  1. var rule = {
  2. title: '异世界动漫',
  3. host: 'https://www.dmmiku.com/',
  4. homeUrl: '/index.php/vod/show/id/22.html',
  5. // url:'/index.php/vod/show/class/fyclass/id/20/page/fypage.html',
  6. url: '/index.php/vod/show/fyclassfyfilter.html',
  7. filterable: 1,
  8. filter_url: '{{fl.type}}/id/20/page/fypage{{fl.year}}',
  9. filter: {
  10. "area/日本": [{
  11. "key": "type",
  12. "name": "类型",
  13. "value": [{
  14. "n": "全部",
  15. "v": ""
  16. }, {
  17. "n": "OVA",
  18. "v": "/class/OVA"
  19. }, {
  20. "n": "剧场版",
  21. "v": "/class/剧场版"
  22. }, {
  23. "n": "无修",
  24. "v": "/class/BD无修"
  25. }, {
  26. "n": "萝莉",
  27. "v": "/class/萝莉"
  28. }, {
  29. "n": "学園",
  30. "v": "/class/学園"
  31. }, {
  32. "n": "后宫",
  33. "v": "/class/后宫"
  34. }, {
  35. "n": "恋爱",
  36. "v": "/class/恋爱"
  37. }, {
  38. "n": "热血",
  39. "v": "/class/热血"
  40. }, {
  41. "n": "神魔",
  42. "v": "/class/神魔"
  43. }, {
  44. "n": "奇幻",
  45. "v": "/class/奇幻"
  46. }, {
  47. "n": "治愈",
  48. "v": "/class/治愈"
  49. }, {
  50. "n": "搞笑",
  51. "v": "/class/搞笑"
  52. }, {
  53. "n": "百合",
  54. "v": "/class/百合"
  55. }, {
  56. "n": "冒险",
  57. "v": "/class/冒险"
  58. }, {
  59. "n": "魔法",
  60. "v": "/class/魔法"
  61. }, {
  62. "n": "机战",
  63. "v": "/class/机战"
  64. }, {
  65. "n": "战争",
  66. "v": "/class/战争"
  67. }, {
  68. "n": "犯罪",
  69. "v": "/class/犯罪"
  70. }, {
  71. "n": "悬疑",
  72. "v": "/class/悬疑"
  73. }, {
  74. "n": "推理",
  75. "v": "/class/推理"
  76. }, {
  77. "n": "科幻",
  78. "v": "/class/科幻"
  79. }, {
  80. "n": "竞技",
  81. "v": "/class/竞技"
  82. }, {
  83. "n": "运动",
  84. "v": "/class/运动"
  85. }, {
  86. "n": "耽美",
  87. "v": "/class/耽美"
  88. }, {
  89. "n": "其他",
  90. "v": "/class/其他"
  91. }]
  92. }, {
  93. "key": "year",
  94. "name": "年份",
  95. "value": [{
  96. "n": "全部",
  97. "v": ""
  98. }, {
  99. "n": "2025",
  100. "v": "/year/2025"
  101. }, {
  102. "n": "2024",
  103. "v": "/year/2024"
  104. }, {
  105. "n": "2023",
  106. "v": "/year/2023"
  107. }, {
  108. "n": "2022",
  109. "v": "/year/2022"
  110. }, {
  111. "n": "2021",
  112. "v": "/year/2021"
  113. }, {
  114. "n": "2020",
  115. "v": "/year/2020"
  116. }, {
  117. "n": "2019",
  118. "v": "/year/2019"
  119. }, {
  120. "n": "2018",
  121. "v": "/year/2018"
  122. }, {
  123. "n": "2017",
  124. "v": "/year/2017"
  125. }, {
  126. "n": "2016",
  127. "v": "/year/2016"
  128. }, {
  129. "n": "2015",
  130. "v": "/year/2015"
  131. }, {
  132. "n": "2014",
  133. "v": "/year/2014"
  134. }, {
  135. "n": "2013",
  136. "v": "/year/2013"
  137. }, {
  138. "n": "2012",
  139. "v": "/year/2012"
  140. }, {
  141. "n": "2011",
  142. "v": "/year/2011"
  143. }, {
  144. "n": "2010",
  145. "v": "/year/2010"
  146. }, {
  147. "n": "2009",
  148. "v": "/year/2009"
  149. }, {
  150. "n": "2008",
  151. "v": "/year/2008"
  152. }]
  153. }],
  154. "area/中國": [{
  155. "key": "year",
  156. "name": "年份",
  157. "value": [{
  158. "n": "全部",
  159. "v": ""
  160. }, {
  161. "n": "2025",
  162. "v": "/year/2025"
  163. }, {
  164. "n": "2024",
  165. "v": "/year/2024"
  166. }, {
  167. "n": "2023",
  168. "v": "/year/2023"
  169. }, {
  170. "n": "2022",
  171. "v": "/year/2022"
  172. }, {
  173. "n": "2021",
  174. "v": "/year/2021"
  175. }, {
  176. "n": "2020",
  177. "v": "/year/2020"
  178. }, {
  179. "n": "2019",
  180. "v": "/year/2019"
  181. }, {
  182. "n": "2018",
  183. "v": "/year/2018"
  184. }, {
  185. "n": "2017",
  186. "v": "/year/2017"
  187. }, {
  188. "n": "2016",
  189. "v": "/year/2016"
  190. }, {
  191. "n": "2015",
  192. "v": "/year/2015"
  193. }, {
  194. "n": "2014",
  195. "v": "/year/2014"
  196. }, {
  197. "n": "2013",
  198. "v": "/year/2013"
  199. }, {
  200. "n": "2012",
  201. "v": "/year/2012"
  202. }, {
  203. "n": "2011",
  204. "v": "/year/2011"
  205. }, {
  206. "n": "2010",
  207. "v": "/year/2010"
  208. }, {
  209. "n": "2009",
  210. "v": "/year/2009"
  211. }, {
  212. "n": "2008",
  213. "v": "/year/2008"
  214. }]
  215. }]
  216. },
  217. searchUrl: '/index.php/vod/search/page/fypage/wd/**.html',
  218. searchable: 2,
  219. quickSearch: 0,
  220. headers: {
  221. 'User-Agent': 'MOBILE_UA'
  222. },
  223. timeout: 5000, //网站的全局请求超时,默认是3000毫秒
  224. class_name: '日漫&国漫',
  225. class_url: 'area/日本&area/中國',
  226. play_parse: true,
  227. lazy: `js:
  228. var html = JSON.parse(request(input).match(/r player_.*?=(.*?)</)[1]);
  229. var url = html.url;
  230. var from = html.from;
  231. if (html.encrypt == '1') {
  232. url = unescape(url)
  233. } else if (html.encrypt == '2') {
  234. url = unescape(base64Decode(url))
  235. }
  236. if (/m3u8|mp4/.test(url)) {
  237. input = url
  238. } else {
  239. var MacPlayerConfig={};
  240. eval(fetch(HOST + "/static/js/playerconfig.js").replace('var Mac','Mac'));
  241. var jx = MacPlayerConfig.player_list[from].parse;
  242. if (jx == '') {
  243. jx = MacPlayerConfig.parse
  244. };
  245. if (jx.startsWith("/")) {
  246. jx = "https:" + jx;
  247. }
  248. input={
  249. jx:0,
  250. url:jx+url,
  251. parse:1,
  252. header: JSON.stringify({
  253. 'referer': HOST
  254. })
  255. }
  256. }
  257. `,
  258. limit: 6,
  259. // 图片来源:'@Referer=https://api.douban.com/@User-Agent=Mozilla/5.0%20(Windows%20NT%2010.0;%20Win64;%20x64)%20AppleWebKit/537.36%20(KHTML,%20like%20Gecko)%20Chrome/113.0.0.0%20Safari/537.36',
  260. 推荐: '*',
  261. 一级: '.vodlist_wi&&li;.lazyload&&title;.lazyload&&data-original;.pic_text&&Text;a&&href',
  262. 二级: {
  263. "title": "h2&&Text;li.data--span:eq(0)&&Text",
  264. "img": ".lazyload&&data-original",
  265. "desc": "li.data--span:eq(1)&&Text;;;li.data--span:eq(2)&&Text;li.data--span:eq(3)&&Text",
  266. "content": ".full_text&&span&&Text",
  267. "tabs": `js:
  268. TABS = [];
  269. let tabs = pdfa(html, '#NumTab&&a');
  270. tabs.forEach((it) => {
  271. TABS.push(pdfh(it, 'a&&alt'))
  272. });
  273. `,
  274. // "lists": ".content_playlist:not(.list_scroll):eq(#id) a"
  275. "lists": "div.playlist_full:eq(#id) li"
  276. },
  277. 搜索: 'li.searchlist_item;*;*;*;*',
  278. }