NY影院.js 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. muban.短视2.二级.title = '.slide-info-title&&Text;.hl-ma0&&Text';
  2. muban.短视2.二级.img = '.detail-pic&&img&&data-src';
  3. muban.短视2.二级.desc = '.fraction&&Text;;;.slide-info:eq(3)--strong&&Text;.slide-info:eq(2)--strong&&Text';
  4. var rule={
  5. title:'NY影院',
  6. 模板:'短视2',
  7. host:'https://www.nycvod.com',
  8. homeUrl:'/index.php/label/rb.html',
  9. url: '/index.php/api/vod#type=fyfilter&page=fypage',
  10. detailUrl:'/voddetail/fyid.html',
  11. filterable:1,//是否启用分类筛选,
  12. filter_url:'{{fl.cateId}}',
  13. filter:{
  14. "1":[{"key":"cateId","name":"分类","value":[{"n":"全部","v":"1"},{"n":"动作片","v":"9"},{"n":"喜剧片","v":"10"},{"n":"奇幻片","v":"11"},{"n":"科幻片","v":"12"},{"n":"恐怖片","v":"22"},{"n":"惊悚片","v":"27"},{"n":"悬疑片","v":"23"},{"n":"爱情片","v":"21"},{"n":"战争片","v":"20"},{"n":"剧情片","v":"6"},{"n":"网络电影","v":"24"},{"n":"犯罪片","v":"26"},{"n":"伦理片","v":"8"},{"n":"灾难片","v":"7"},{"n":"动画电影","v":"25"},{"n":"冒险片","v":"28"},{"n":"同性片","v":"44"},{"n":"纪录片","v":"29"},{"n":"歌舞片","v":"45"},{"n":"经典片","v":"46"}]}],
  15. "2":[{"key":"cateId","name":"分类","value":[{"n":"全部","v":"2"},{"n":"国产剧","v":"30"},{"n":"欧美剧","v":"47"},{"n":"日韩剧","v":"18"},{"n":"港台剧","v":"16"},{"n":"新马泰剧","v":"14"},{"n":"其他剧","v":"13"}]}],
  16. "3":[{"key":"cateId","name":"分类","value":[{"n":"全部","v":"3"},{"n":"国产综艺","v":"31"},{"n":"日韩综艺","v":"32"},{"n":"欧美综艺","v":"34"},{"n":"港台综艺","v":"35"},{"n":"其他综艺","v":"37"}]}],
  17. "4":[{"key":"cateId","name":"分类","value":[{"n":"全部","v":"4"},{"n":"日韩动漫","v":"38"},{"n":"国产动漫","v":"39"},{"n":"欧美动漫","v":"40"},{"n":"港台动漫","v":"42"},{"n":"其他动漫","v":"43"}]}]
  18. },
  19. filter_def:{
  20. 1:{cateId:'1'},
  21. 2:{cateId:'2'},
  22. 3:{cateId:'3'},
  23. 4:{cateId:'4'},
  24. 5:{cateId:'5'}
  25. },
  26. // class_name:'电影&电视剧&综艺&动漫&竞技体育',
  27. // class_url:'1&2&3&4&5',
  28. class_parse:'.swiper-wrapper&&li.swiper-slide;a--em&&Text;a&&href;/(\\d+).html',
  29. class_name:'',
  30. class_url:'',
  31. play_parse:true,
  32. lazy:`js:
  33. var html = JSON.parse(request(input).match(/r player_.*?=(.*?)</)[1]);
  34. var url = html.url;
  35. if (html.encrypt == '1') {
  36. url = unescape(url)
  37. } else if (html.encrypt == '2') {
  38. url = unescape(base64Decode(url))
  39. }
  40. if (/m3u8|mp4/.test(url)) {
  41. input = url
  42. } else {
  43. input
  44. }
  45. `,
  46. 推荐:'.list-vod .public-list-box;a&&title;.lazy&&data-src;.public-list-prb&&Text;a&&href',
  47. double: false, // 推荐内容是否双层定位
  48. 一级:`js:
  49. let body = input.split("#")[1];
  50. let t = Math.round(new Date / 1e3).toString();
  51. let key = md5("DS" + t + "DCC147D11943AF75");
  52. let url = input.split("#")[0];
  53. body = body + "&time=" + t + "&key=" + key;
  54. print(body);
  55. fetch_params.body = body;
  56. let html = post(url, fetch_params);
  57. let data = JSON.parse(html);
  58. VODS = data.list.map(function(it) {
  59. it.vod_pic = urljoin2(input.split("/i")[0], it.vod_pic);
  60. return it
  61. });
  62. `,
  63. }