360.js 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358
  1. var rule = {
  2. title:'360影视',
  3. host:'https://www.360kan.com',
  4. homeUrl:'https://api.web.360kan.com/v1/rank?cat=2&size=9',
  5. detailUrl:'https://api.web.360kan.com/v1/detail?cat=fyclass&id=fyid',
  6. searchUrl:'https://api.so.360kan.com/index?force_v=1&kw=**&from=&pageno=fypage&v_ap=1&tab=all',
  7. //url:'https://api.web.360kan.com/v1/filter/list?catid=fyclass&rank=rankhot&cat=&year=&area=&act=&size=35&pageno=fypage&callback=',
  8. url:'https://api.web.360kan.com/v1/filter/list?catid=fyclassfyfilter',
  9. filterable:1,//是否启用分类筛选,
  10. filter_url:'{{fl.cateId}}&rank={{fl.by}}&cat={{fl.class}}&year={{fl.year}}&area={{fl.area}}&act={{fl.act}}&size=35&pageno=fypage&callback=',
  11. filter: {
  12. "1":[
  13. {"key":"class","name":"剧情","value":[
  14. {"n":"全部","v":""},
  15. {"n":"喜剧","v":"喜剧"},
  16. {"n":"爱情","v":"爱情"},
  17. {"n":"动作","v":"动作"},
  18. {"n":"恐怖","v":"恐怖"},
  19. {"n":"科幻","v":"科幻"},
  20. {"n":"剧情","v":"剧情"},
  21. {"n":"犯罪","v":"犯罪"},
  22. {"n":"奇幻","v":"奇幻"},
  23. {"n":"战争","v":"战争"},
  24. {"n":"悬疑","v":"悬疑"},
  25. {"n":"动画","v":"动画"},
  26. {"n":"文艺","v":"文艺"},
  27. {"n":"纪录","v":"纪录"},
  28. {"n":"传记","v":"传记"},
  29. {"n":"歌舞","v":"歌舞"},
  30. {"n":"古装","v":"古装"},
  31. {"n":"历史","v":"历史"},
  32. {"n":"惊悚","v":"惊悚"},
  33. {"n":"伦理","v":"伦理"},
  34. {"n":"其他","v":"其他"}]},
  35. {"key":"area","name":"地区","value":[
  36. {"n":"全部","v":""},
  37. {"n":"内地","v":"大陆"},
  38. {"n":"中国香港","v":"香港"},
  39. {"n":"中国台湾","v":"台湾"},
  40. {"n":"泰国","v":"泰国"},
  41. {"n":"美国","v":"美国"},
  42. {"n":"韩国","v":"韩国"},
  43. {"n":"日本","v":"日本"},
  44. {"n":"法国","v":"法国"},
  45. {"n":"英国","v":"英国"},
  46. {"n":"德国","v":"德国"},
  47. {"n":"印度","v":"印度"},
  48. {"n":"其他","v":"其他"}]},
  49. {"key":"act","name":"明星","value":[
  50. {"n":"全部","v":""},
  51. {"n":"成龙","v":"成龙"},
  52. {"n":"周星驰","v":"周星驰"},
  53. {"n":"李连杰","v":"李连杰"},
  54. {"n":"林正英","v":"林正英"},
  55. {"n":"吴京","v":"吴京"},
  56. {"n":"徐峥","v":"徐峥"},
  57. {"n":"黄渤","v":"黄渤"},
  58. {"n":"王宝强","v":"王宝强"},
  59. {"n":"李小龙","v":"李小龙"},
  60. {"n":"张国荣","v":"张国荣"},
  61. {"n":"洪金宝","v":"洪金宝"},
  62. {"n":"姜文","v":"姜文"},
  63. {"n":"沈腾","v":"沈腾"},
  64. {"n":"邓超","v":"邓超"},
  65. {"n":"巩俐","v":"巩俐"},
  66. {"n":"马丽","v":"马丽"},
  67. {"n":"闫妮","v":"闫妮"},
  68. {"n":"周冬雨","v":"周冬雨"},
  69. {"n":"刘昊然","v":"刘昊然"},
  70. {"n":"汤唯","v":"汤唯"},
  71. {"n":"舒淇","v":"舒淇"},
  72. {"n":"白百何","v":"白百何"}]},
  73. {"key":"year","name":"年份","value":[
  74. {"n":"全部","v":""},
  75. {"n":"2023","v":"2023"},
  76. {"n":"2022","v":"2022"},
  77. {"n":"2021","v":"2021"},
  78. {"n":"2020","v":"2020"},
  79. {"n":"2019","v":"2019"},
  80. {"n":"2018","v":"2018"},
  81. {"n":"2017","v":"2017"},
  82. {"n":"2016","v":"2016"},
  83. {"n":"2015","v":"2015"},
  84. {"n":"2014","v":"2014"},
  85. {"n":"2013","v":"2013"},
  86. {"n":"2012","v":"2012"},
  87. {"n":"2010","v":"2010"},
  88. {"n":"2009","v":"2009"},
  89. {"n":"2008","v":"2008"},
  90. {"n":"2007","v":"2007"},
  91. {"n":"更早","v":"lt_year"}]},
  92. {"key":"by","name":"排序","value":[
  93. {"n":"全部","v":""},
  94. {"n":"最近热映","v":"rankhot"},
  95. {"n":"最近上映","v":"ranklatest"},
  96. {"n":"最受好评","v":"rankpoint"}]}],
  97. "2":[
  98. {"key":"class","name":"剧情","value":[
  99. {"n":"全部","v":""},
  100. {"n":"言情","v":"言情"},
  101. {"n":"剧情","v":"剧情"},
  102. {"n":"伦理","v":"伦理"},
  103. {"n":"喜剧","v":"喜剧"},
  104. {"n":"悬疑","v":"悬疑"},
  105. {"n":"都市","v":"都市"},
  106. {"n":"偶像","v":"偶像"},
  107. {"n":"古装","v":"古装"},
  108. {"n":"军事","v":"军事"},
  109. {"n":"警匪","v":"警匪"},
  110. {"n":"历史","v":"历史"},
  111. {"n":"励志","v":"励志"},
  112. {"n":"神话","v":"神话"},
  113. {"n":"谍战","v":"谍战"},
  114. {"n":"青春","v":"青春剧"},
  115. {"n":"家庭","v":"家庭剧"},
  116. {"n":"动作","v":"动作"},
  117. {"n":"情景","v":"情景"},
  118. {"n":"武侠","v":"武侠"},
  119. {"n":"科幻","v":"科幻"},
  120. {"n":"其他","v":"其他"}]},
  121. {"key":"area","name":"地区","value":[
  122. {"n":"全部","v":""},
  123. {"n":"内地","v":"内地"},
  124. {"n":"中国香港","v":"香港"},
  125. {"n":"中国台湾","v":"台湾"},
  126. {"n":"泰国","v":"泰国"},
  127. {"n":"日本","v":"日本"},
  128. {"n":"韩国","v":"韩国"},
  129. {"n":"美国","v":"美国"},
  130. {"n":"英国","v":"英国"},
  131. {"n":"新加坡","v":"新加坡"}]},
  132. {"key":"act","name":"明星","value":[
  133. {"n":"全部","v":""},
  134. {"n":"杨幂","v":"杨幂"},
  135. {"n":"热巴","v":"迪丽热巴"},
  136. {"n":"张嘉译","v":"张嘉译"},
  137. {"n":"赵丽颖","v":"赵丽颖"},
  138. {"n":"赵又廷","v":"赵又廷"},
  139. {"n":"胡歌","v":"胡歌"},
  140. {"n":"孙俪","v":"孙俪"},
  141. {"n":"韩东君","v":"韩东君"},
  142. {"n":"周迅","v":"周迅"},
  143. {"n":"张一山","v":"张一山"},
  144. {"n":"李小璐","v":"李小璐"},
  145. {"n":"李沁","v":"李沁"},
  146. {"n":"陈坤","v":"陈坤"},
  147. {"n":"刘亦菲","v":"刘亦菲"},
  148. {"n":"唐嫣","v":"唐嫣"},
  149. {"n":"李小冉","v":"李小冉"},
  150. {"n":"周冬雨","v":"周冬雨"},
  151. {"n":"于和伟","v":"于和伟"},
  152. {"n":"李易峰","v":"李易峰"},
  153. {"n":"雷佳音","v":"雷佳音"},
  154. {"n":"何冰","v":"何冰"},
  155. {"n":"阮经天","v":"阮经天"},
  156. {"n":"梅婷","v":"梅婷"},
  157. {"n":"徐峥","v":"徐峥"},
  158. {"n":"祖峰","v":"祖峰"},
  159. {"n":"秦海璐","v":"秦海璐"},
  160. {"n":"杨紫","v":"杨紫"},
  161. {"n":"任嘉伦","v":"任嘉伦"},
  162. {"n":"贾乃亮","v":"贾乃亮"},
  163. {"n":"罗晋","v":"罗晋"}]},
  164. {"key":"year","name":"年份","value":[
  165. {"n":"全部","v":""},
  166. {"n":"2023","v":"2023"},
  167. {"n":"2022","v":"2022"},
  168. {"n":"2021","v":"2021"},
  169. {"n":"2020","v":"2020"},
  170. {"n":"2019","v":"2019"},
  171. {"n":"2018","v":"2018"},
  172. {"n":"2017","v":"2017"},
  173. {"n":"2016","v":"2016"},
  174. {"n":"2015","v":"2015"},
  175. {"n":"2014","v":"2014"},
  176. {"n":"2013","v":"2013"},
  177. {"n":"2012","v":"2012"},
  178. {"n":"2010","v":"2010"},
  179. {"n":"2009","v":"2009"},
  180. {"n":"2008","v":"2008"},
  181. {"n":"2007","v":"2007"},
  182. {"n":"更早","v":"lt_year"}]},
  183. {"key":"by","name":"排序","value":[
  184. {"n":"全部","v":""},
  185. {"n":"最近热映","v":"rankhot"},
  186. {"n":"最近上映","v":"ranklatest"},
  187. {"n":"最受好评","v":"rankpoint"}]}],
  188. "3":[
  189. {"key":"class","name":"剧情","value":[
  190. {"n":"全部","v":""},
  191. {"n":"脱口秀","v":"脱口秀"},
  192. {"n":"真人秀","v":"真人秀"},
  193. {"n":"搞笑","v":"搞笑"},
  194. {"n":"选秀","v":"选秀"},
  195. {"n":"八卦","v":"八卦"},
  196. {"n":"访谈","v":"访谈"},
  197. {"n":"情感","v":"情感"},
  198. {"n":"生活","v":"生活"},
  199. {"n":"晚会","v":"晚会"},
  200. {"n":"音乐","v":"音乐"},
  201. {"n":"职场","v":"职场"},
  202. {"n":"美食","v":"美食"},
  203. {"n":"时尚","v":"时尚"},
  204. {"n":"游戏","v":"游戏"},
  205. {"n":"少儿","v":"少儿"},
  206. {"n":"体育","v":"体育"},
  207. {"n":"纪实","v":"纪实"},
  208. {"n":"科教","v":"科教"},
  209. {"n":"曲艺","v":"曲艺"},
  210. {"n":"歌舞","v":"歌舞"},
  211. {"n":"财经","v":"财经"},
  212. {"n":"汽车","v":"汽车"},
  213. {"n":"播报","v":"播报"},
  214. {"n":"其他","v":"其他"}]},
  215. {"key":"area","name":"地区","value":[
  216. {"n":"全部","v":""},
  217. {"n":"内地","v":"大陆"},
  218. {"n":"中国香港","v":"香港"},
  219. {"n":"中国台湾","v":"台湾"},
  220. {"n":"日本","v":"日本"},
  221. {"n":"欧美","v":"欧美"}]},
  222. {"key":"act","name":"明星","value":[
  223. {"n":"全部","v":""},
  224. {"n":"邓超","v":"邓超"},
  225. {"n":"陈赫","v":"陈赫"},
  226. {"n":"何炅","v":"何炅"},
  227. {"n":"汪涵","v":"汪涵"},
  228. {"n":"王俊凯","v":"王俊凯"},
  229. {"n":"黄磊","v":"黄磊"},
  230. {"n":"谢娜","v":"谢娜"},
  231. {"n":"黄渤","v":"黄渤"},
  232. {"n":"周杰伦","v":"周杰伦"},
  233. {"n":"薛之谦","v":"薛之谦"},
  234. {"n":"Angelababy","v":"Angelababy"},
  235. {"n":"易烊千玺","v":"易烊千玺"},
  236. {"n":"岳云鹏","v":"岳云鹏"},
  237. {"n":"王嘉尔","v":"王嘉尔"},
  238. {"n":"鹿晗","v":"鹿晗"},
  239. {"n":"杨幂","v":"杨幂"},
  240. {"n":"沈腾","v":"沈腾"},
  241. {"n":"张艺兴","v":"张艺兴"},
  242. {"n":"潘玮柏","v":"潘玮柏"},
  243. {"n":"华晨宇","v":"华晨宇"},
  244. {"n":"李维嘉","v":"李维嘉"},
  245. {"n":"宋小宝","v":"宋小宝"},
  246. {"n":"贾玲","v":"贾玲"},
  247. {"n":"沙溢","v":"沙溢"},
  248. {"n":"撒贝宁","v":"撒贝宁"},
  249. {"n":"涂磊","v":"涂磊"}]},
  250. {"key":"by","name":"排序","value":[
  251. {"n":"全部","v":""},
  252. {"n":"最近热映","v":"rankhot"},
  253. {"n":"最近上映","v":"ranklatest"}]}],
  254. "4":[
  255. {"key":"class","name":"剧情","value":[
  256. {"n":"全部","v":""},
  257. {"n":"热血","v":"热血"},
  258. {"n":"科幻","v":"科幻"},
  259. {"n":"美少女","v":"美少女"},
  260. {"n":"魔幻","v":"魔幻"},
  261. {"n":"经典","v":"经典"},
  262. {"n":"励志","v":"励志"},
  263. {"n":"少儿","v":"少儿"},
  264. {"n":"冒险","v":"冒险"},
  265. {"n":"搞笑","v":"搞笑"},
  266. {"n":"推理","v":"推理"},
  267. {"n":"恋爱","v":"恋爱"},
  268. {"n":"治愈","v":"治愈"},
  269. {"n":"幻想","v":"幻想"},
  270. {"n":"校园","v":"校园"},
  271. {"n":"动物","v":"动物"},
  272. {"n":"机战","v":"机战"},
  273. {"n":"亲子","v":"亲子"},
  274. {"n":"儿歌","v":"儿歌"},
  275. {"n":"运动","v":"运动"},
  276. {"n":"悬疑","v":"悬疑"},
  277. {"n":"怪物","v":"怪物"},
  278. {"n":"战争","v":"战争"},
  279. {"n":"益智","v":"益智"},
  280. {"n":"青春","v":"青春"},
  281. {"n":"童话","v":"童话"},
  282. {"n":"竞技","v":"竞技"},
  283. {"n":"动作","v":"动作"},
  284. {"n":"社会","v":"社会"},
  285. {"n":"友情","v":"友情"},
  286. {"n":"真人版","v":"真人版"},
  287. {"n":"电影版","v":"电影版"},
  288. {"n":"OVA版","v":"OVA版"}]},
  289. {"key":"area","name":"地区","value":[
  290. {"n":"全部","v":""},
  291. {"n":"内地","v":"大陆"},
  292. {"n":"日本","v":"日本"},
  293. {"n":"美国","v":"美国"}]},
  294. {"key":"year","name":"年份","value":[
  295. {"n":"全部","v":""},
  296. {"n":"2023","v":"2023"},
  297. {"n":"2022","v":"2022"},
  298. {"n":"2021","v":"2021"},
  299. {"n":"2020","v":"2020"},
  300. {"n":"2019","v":"2019"},
  301. {"n":"2018","v":"2018"},
  302. {"n":"2017","v":"2017"},
  303. {"n":"2016","v":"2016"},
  304. {"n":"2015","v":"2015"},
  305. {"n":"2014","v":"2014"},
  306. {"n":"2013","v":"2013"},
  307. {"n":"2012","v":"2012"},
  308. {"n":"2011","v":"2011"},
  309. {"n":"2010","v":"2010"},
  310. {"n":"2009","v":"2009"},
  311. {"n":"2008","v":"2008"},
  312. {"n":"2007","v":"2007"},
  313. {"n":"2006","v":"2006"},
  314. {"n":"2005","v":"2005"},
  315. {"n":"2004","v":"2004"},
  316. {"n":"更早","v":"更早"}]},
  317. {"key":"by","name":"排序","value":[
  318. {"n":"全部","v":""},
  319. {"n":"最近热映","v":"rankhot"},
  320. {"n":"最近上映","v":"ranklatest"}]}]},
  321. headers:{
  322. 'User-Agent':'MOBILE_UA'
  323. },
  324. timeout:5000,
  325. class_name:'电视剧&电影&综艺&动漫',
  326. class_url:'2&1&3&4',
  327. limit:5,
  328. multi:1,
  329. searchable:2,
  330. play_parse:true,
  331. lazy:'js:input=input.split("?")[0];log(input);',
  332. // 疑似t4专用的
  333. // lazy:'js:input={parse: 1, playUrl: "", jx: 1, url: input.split("?")[0]}',
  334. // 手动调用解析请求json的url,此lazy不方便
  335. // lazy:'js:input="https://cache.json.icu/home/api?type=ys&uid=292796&key=fnoryABDEFJNPQV269&url="+input.split("?")[0];log(input);let html=JSON.parse(request(input));log(html);input=html.url||input',
  336. 推荐:'json:data;title;cover;comment;cat+ent_id;description',
  337. 一级:'json:data.movies;title;cover;pubdate;id;description',
  338. 二级:'',
  339. 二级:'js:let html=JSON.parse(fetch(input,fetch_params));let data=html.data;let tilte=data.title;let img=data.cdncover;let vod_type=data.moviecategory.join(",");let area=data.area.join(",");let director=data.director.join(",");let actor=data.actor.join(",");let content=data.description;let base_vod={vod_id:input,vod_name:tilte,type_name:vod_type,vod_actor:actor,vod_director:director,vod_content:content,vod_remarks:area,vod_pic:urljoin2(input,img)};let delta=200;let vod_play={};let sites=data.playlink_sites;sites.forEach(function(site){let playList="";let vodItems=[];if(data.allupinfo){let total=parseInt(data.allupinfo[site]);for(let j=1;j<total;j+=delta){let end=Math.min(total,j+delta-1);let url2=buildUrl(input,{start:j,end:end,site:site});let vod_data=JSON.parse(fetch(url2),fetch_params).data;if(vod_data.allepidetail){vod_data=vod_data.allepidetail[site];vod_data.forEach(function(item,index){vodItems.push((item.playlink_num||"")+"$"+urlDeal(item.url||""))})}else{vod_data=vod_data.defaultepisode;vod_data.forEach(function(item,index){vodItems.push((item.period||"")+(item.name||"")+"$"+urlDeal(item.url)||"")})}}}else{let item=data.playlinksdetail[site];vodItems.push((item.sort||"")+"$"+urlDeal(item.default_url||""))}if(vodItems.length>0){playList=vodItems.join("#")}if(playList.length<1){return}vod_play[site]=playList});let tabs=Object.keys(vod_play);let playUrls=[];for(let id in tabs){print("id:"+id);playUrls.push(vod_play[tabs[id]])}if(tabs.length>0){let vod_play_from=tabs.join("$$$");let vod_play_url=playUrls.join("$$$");base_vod.vod_play_from=vod_play_from;base_vod.vod_play_url=vod_play_url}VOD=base_vod;',
  340. 搜索:'json:data.longData.rows;titleTxt||titlealias;cover;cat_name;cat_id+en_id;description',
  341. }