changzhang.js 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285
  1. var rule = {
  2. title: '厂长资源',
  3. //host: 'https://cz01.vip',
  4. host:"https://cz01.pw/",
  5. //hostJs: 'print(HOST);let html=request(HOST,{headers:{"User-Agent":PC_UA}});HOST = jsp.pdfh(html,"h3&&a&&href")',
  6. url: '/fyclassfyfilter',
  7. filterable: 1,
  8. filter_url: '{{fl.cateId}}{{fl.class}}{{fl.area}}/page/fypage',
  9. filter: {
  10. "movie_bt": [
  11. {
  12. "key": "area",
  13. "name": "分类",
  14. "value": [
  15. {
  16. "v": "",
  17. "n": "全部"
  18. },
  19. {
  20. "v": "/movie_bt_series/zhanchangtuijian",
  21. "n": "站长推荐"
  22. },
  23. {
  24. "v": "/movie_bt_series/dyy",
  25. "n": "电影"
  26. },
  27. {
  28. "v": "/movie_bt_series/dianshiju",
  29. "n": "电视剧"
  30. },
  31. {
  32. "v": "/movie_bt_series/dohua",
  33. "n": "动画"
  34. },
  35. {
  36. "v": "/movie_bt_series/guochanju",
  37. "n": "国产剧"
  38. },
  39. {
  40. "v": "/movie_bt_series/mj",
  41. "n": "美剧"
  42. },
  43. {
  44. "v": "/movie_bt_series/rj",
  45. "n": "日剧"
  46. },
  47. {
  48. "v": "/movie_bt_series/hj",
  49. "n": "韩剧"
  50. },
  51. {
  52. "v": "/movie_bt_series/hwj",
  53. "n": "海外剧(其他)"
  54. },
  55. {
  56. "v": "/movie_bt_series/huayudianying",
  57. "n": "华语电影"
  58. },
  59. {
  60. "v": "/movie_bt_series/meiguodianying",
  61. "n": "欧美电影"
  62. },
  63. {
  64. "v": "/movie_bt_series/ribendianying",
  65. "n": "日本电影"
  66. },
  67. {
  68. "v": "/movie_bt_series/hanguodianying",
  69. "n": "韩国电影"
  70. },
  71. {
  72. "v": "/movie_bt_series/yingguodianying",
  73. "n": "英国电影"
  74. },
  75. {
  76. "v": "/movie_bt_series/faguodianying",
  77. "n": "法国电影"
  78. },
  79. {
  80. "v": "/movie_bt_series/yindudianying",
  81. "n": "印度电影"
  82. },
  83. {
  84. "v": "/movie_bt_series/eluosidianying",
  85. "n": "俄罗斯电影"
  86. },
  87. {
  88. "v": "/movie_bt_series/jianadadianying",
  89. "n": "加拿大电影"
  90. },
  91. {
  92. "v": "/movie_bt_series/huiyuanzhuanqu",
  93. "n": "会员专区"
  94. }
  95. ]
  96. },
  97. {
  98. "key": "class",
  99. "name": "类型",
  100. "value": [
  101. {
  102. "n": "全部",
  103. "v": ""
  104. },
  105. {
  106. "n": "传记",
  107. "v": "/movie_bt_tags/chuanji"
  108. },
  109. {
  110. "n": "儿童",
  111. "v": "/movie_bt_tags/etet"
  112. },
  113. {
  114. "n": "冒险",
  115. "v": "/movie_bt_tags/maoxian"
  116. },
  117. {
  118. "n": "剧情",
  119. "v": "/movie_bt_tags/juqing"
  120. },
  121. {
  122. "n": "动作",
  123. "v": "/movie_bt_tags/dozuo"
  124. },
  125. {
  126. "n": "动漫",
  127. "v": "/movie_bt_tags/doman"
  128. },
  129. {
  130. "n": "动画",
  131. "v": "/movie_bt_tags/dhh"
  132. },
  133. {
  134. "n": "历史",
  135. "v": "/movie_bt_tags/lishi"
  136. },
  137. {
  138. "n": "古装",
  139. "v": "/movie_bt_tags/guzhuang"
  140. },
  141. {
  142. "n": "同性",
  143. "v": "/movie_bt_tags/tongxing"
  144. },
  145. {
  146. "n": "喜剧",
  147. "v": "/movie_bt_tags/xiju"
  148. },
  149. {
  150. "n": "奇幻",
  151. "v": "/movie_bt_tags/qihuan"
  152. },
  153. {
  154. "n": "家庭",
  155. "v": "/movie_bt_tags/jiating"
  156. },
  157. {
  158. "n": "恐怖",
  159. "v": "/movie_bt_tags/kubu"
  160. },
  161. {
  162. "n": "悬疑",
  163. "v": "/movie_bt_tags/xuanyi"
  164. },
  165. {
  166. "n": "情色",
  167. "v": "/movie_bt_tags/qingse"
  168. },
  169. {
  170. "n": "惊悚",
  171. "v": "/movie_bt_tags/kingsong"
  172. },
  173. {
  174. "n": "战争",
  175. "v": "/movie_bt_tags/zhanzhen"
  176. },
  177. {
  178. "n": "歌舞",
  179. "v": "/movie_bt_tags/gw"
  180. },
  181. {
  182. "n": "武侠",
  183. "v": "/movie_bt_tags/wuxia"
  184. },
  185. {
  186. "n": "灾难",
  187. "v": "/movie_bt_tags/zainan"
  188. },
  189. {
  190. "n": "爱情",
  191. "v": "/movie_bt_tags/aiqing"
  192. },
  193. {
  194. "n": "犯罪",
  195. "v": "/movie_bt_tags/fanzui"
  196. },
  197. {
  198. "n": "短片",
  199. "v": "/movie_bt_tags/dp"
  200. },
  201. {
  202. "n": "科幻",
  203. "v": "/movie_bt_tags/kh"
  204. },
  205. {
  206. "n": "纪录片",
  207. "v": "/movie_bt_tags/jlpp"
  208. },
  209. {
  210. "n": "西部",
  211. "v": "/movie_bt_tags/xb"
  212. },
  213. {
  214. "n": "运动",
  215. "v": "/movie_bt_tags/yd"
  216. },
  217. {
  218. "n": "音乐",
  219. "v": "/movie_bt_tags/yy"
  220. }
  221. ]
  222. }
  223. ]
  224. },
  225. searchUrl: '/page/fypage?s=**',
  226. searchable: 2,
  227. filterable: 0,
  228. headers: {
  229. 'User-Agent': 'MOBILE_UA',
  230. 'Cookie': 'esc_search_captcha=1'
  231. },
  232. class_name: '全部&热映中&动漫&国产剧&美剧&韩剧&日剧&海外剧',
  233. class_url: 'movie_bt&reyingzhong&/movie_bt_series/dohua&/movie_bt_series/guochanju&/movie_bt_series/mj&/movie_bt_series/hj&/movie_bt_series/rj&/movie_bt_series/hwj',
  234. play_parse: true,
  235. /* lazy代码:源于海阔香雅情大佬
  236. 小程序:香情影视 https://pastebin.com/L4tHdvFn8 */
  237. lazy: `js:
  238. pdfh = jsp.pdfh;
  239. var html = request(input);
  240. var ohtml = pdfh(html, '.videoplay&&Html');
  241. var url = pdfh(ohtml, "body&&iframe&&src");
  242. if (/Cloud/.test(url)) {
  243. var ifrwy = request(url);
  244. let code = ifrwy.match(/var url = '(.*?)'/)[1].split('').reverse().join('');
  245. let temp = '';
  246. for (let i = 0x0; i < code.length; i = i + 0x2) {
  247. temp += String.fromCharCode(parseInt(code[i] + code[i + 0x1], 0x10))
  248. }
  249. input = {
  250. jx: 0,
  251. url: temp.substring(0x0, (temp.length - 0x7) / 0x2) + temp.substring((temp.length - 0x7) / 0x2 + 0x7),
  252. parse: 0
  253. }
  254. } else if (/decrypted/.test(ohtml)) {
  255. var phtml = pdfh(ohtml, "body&&script:not([src])&&Html");
  256. eval(getCryptoJS());
  257. var scrpt = phtml.match(/var.*?\\)\\);/g)[0];
  258. var data = [];
  259. eval(scrpt.replace(/md5/g, 'CryptoJS').replace('eval', 'data = '));
  260. input = {
  261. jx: 0,
  262. url: data.match(/url:.*?[\\'\\"](.*?)[\\'\\"]/)[1],
  263. parse: 0
  264. }
  265. } else {
  266. input
  267. }
  268. `,
  269. 推荐: '.bt_img;ul&&li;*;*;*;*',
  270. double: true,
  271. 一级: '.bt_img&&ul&&li;h3.dytit&&Text;img.lazy&&data-original;.jidi&&Text;a&&href',
  272. 二级: {
  273. "title": "h1&&Text;.moviedteail_list li&&a&&Text",
  274. "img": "div.dyimg img&&src",
  275. "desc": ".moviedteail_list li:eq(3) a&&Text;.moviedteail_list li:eq(2) a&&Text;.moviedteail_list li:eq(1) a&&Text;.moviedteail_list li:eq(7)&&Text;.moviedteail_list li:eq(5)&&Text",
  276. "content": ".yp_context&&Text",
  277. "tabs": ".mi_paly_box span",
  278. "lists": ".paly_list_btn:eq(#id) a"
  279. },
  280. 搜索: '.search_list&&ul&&li;*;*;*;*',
  281. //预处理:'rule_fetch_params.headers.Cookie="68148872828e9f4d64e7a296f6c6b6d7=5429da9a54375db451f7f9e4f16ce0ea;esc_search_captcha=1";let new_host="https://www.cz0101.com";let new_html=request(new_host);if(/人机身份验证,请完成以下操作/.test(new_html)){let new_src=pd(new_html,"script&&src",new_host);log(new_src);let hhtml=request(new_src,{withHeaders:true});let json=JSON.parse(hhtml);let html=json.body;let key=html.match(new RegExp(\'var key="(.*?)"\'))[1];let avalue=html.match(new RegExp(\'value="(.*?)"\'))[1];let c="";for(let i=0;i<avalue.length;i++){let a=avalue[i];let b=a.charCodeAt();c+=b}let value=md5(c);log(value);let yz_url="https://www.cz0101.com/a20be899_96a6_40b2_88ba_32f1f75f1552_yanzheng_ip.php?type=96c4e20a0e951f471d32dae103e83881&key="+key+"&value="+value;log(yz_url);hhtml=request(yz_url,{withHeaders:true});json=JSON.parse(hhtml);let setCk=Object.keys(json).find(it=>it.toLowerCase()==="set-cookie");let cookie=setCk?json[setCk].split(";")[0]:"";log("cookie:"+cookie);rule_fetch_params.headers.Cookie=cookie;setItem(RULE_CK,cookie)}'
  282. }