荐片.js 5.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. var rule = {
  2. title:'荐片',
  3. //host:'http://jpmobile.acdn.axcxa.top',
  4. host:'http://api2.rinhome.com',
  5. //homeUrl:'https://yjpapipxblwdohpakljwg.hxhzs.com/api/tag/hand?code=unknown601193cf375db73d&channel=wandoujia',//网站的首页链接,用于分类获取和推荐获取
  6. homeUrl:'/api/tag/hand?code=unknown601193cf375db73d&channel=wandoujia',//网站的首页链接,用于分类获取和推荐获取
  7. // url:'/api/crumb/list?area=0&category_id=fyclass&page=fypage&type=0&limit=24&fyfilter',
  8. url:'/api/crumb/list?area=0&page=fypage&type=0&limit=24&fyfilter',
  9. class_name:'电视剧&综艺&电影&动漫&全部', // 筛选 /api/term/ad_fenlei?limit=10&page=1
  10. class_url:'2&4&1&3&0',
  11. detailUrl:'/api/node/detail?channel=wandoujia&token=&id=fyid',//二级详情拼接链接(json格式用)
  12. searchUrl:'/api/video/search?key=**&page=fypage',
  13. searchable:2,
  14. quickSearch:0,
  15. filterable:1,
  16. filter:{
  17. "0":[{"key":"year","name":"年代","value":[{"n":"全部","v":"0"},{"n":"2023","v":"153"},{"n":"2022","v":"101"},{"n":"2021","v":"118"},{"n":"2020","v":"16"},{"n":"2019","v":"7"},{"n":"2018","v":"2"},{"n":"2017","v":"3"},{"n":"2016","v":"22"}]},{"key":"sort","name":"排序","value":[{"n":"热门","v":"hot"},{"n":"评分","v":"rating"},{"n":"更新","v":"update"}]}],
  18. "1":[{"key":"cateId","name":"分类","value":[{"n":"全部","v":"1"},{"n":"首推","v":"5"},{"n":"动作","v":"6"},{"n":"喜剧","v":"7"},{"n":"战争","v":"8"},{"n":"恐怖","v":"9"},{"n":"剧情","v":"10"},{"n":"爱情","v":"11"},{"n":"科幻","v":"12"},{"n":"动画","v":"13"}]},{"key":"year","name":"年代","value":[{"n":"全部","v":"0"},{"n":"2023","v":"153"},{"n":"2022","v":"101"},{"n":"2021","v":"118"},{"n":"2020","v":"16"},{"n":"2019","v":"7"},{"n":"2018","v":"2"},{"n":"2017","v":"3"},{"n":"2016","v":"22"}]},{"key":"sort","name":"排序","value":[{"n":"热门","v":"hot"},{"n":"评分","v":"rating"},{"n":"更新","v":"update"}]}],
  19. "2":[{"key":"cateId","name":"分类","value":[{"n":"全部","v":"2"},{"n":"首推","v":"14"},{"n":"国产","v":"15"},{"n":"港台","v":"16"},{"n":"日韩","v":"17"},{"n":"海外","v":"18"}]},{"key":"year","name":"年代","value":[{"n":"全部","v":"0"},{"n":"2023","v":"153"},{"n":"2022","v":"101"},{"n":"2021","v":"118"},{"n":"2020","v":"16"},{"n":"2019","v":"7"},{"n":"2018","v":"2"},{"n":"2017","v":"3"},{"n":"2016","v":"22"}]},{"key":"sort","name":"排序","value":[{"n":"热门","v":"hot"},{"n":"评分","v":"rating"},{"n":"更新","v":"update"}]}],
  20. "3":[{"key":"cateId","name":"分类","value":[{"n":"全部","v":"3"},{"n":"首推","v":"19"},{"n":"海外","v":"20"},{"n":"日本","v":"21"},{"n":"国产","v":"22"}]},{"key":"year","name":"年代","value":[{"n":"全部","v":"0"},{"n":"2023","v":"153"},{"n":"2022","v":"101"},{"n":"2021","v":"118"},{"n":"2020","v":"16"},{"n":"2019","v":"7"},{"n":"2018","v":"2"},{"n":"2017","v":"3"},{"n":"2016","v":"22"}]},{"key":"sort","name":"排序","value":[{"n":"热门","v":"hot"},{"n":"评分","v":"rating"},{"n":"更新","v":"update"}]}],
  21. "4":[{"key":"cateId","name":"分类","value":[{"n":"全部","v":"4"},{"n":"首推","v":"23"},{"n":"国产","v":"24"},{"n":"海外","v":"25"},{"n":"港台","v":"26"}]},{"key":"year","name":"年代","value":[{"n":"全部","v":"0"},{"n":"2023","v":"153"},{"n":"2022","v":"101"},{"n":"2021","v":"118"},{"n":"2020","v":"16"},{"n":"2019","v":"7"},{"n":"2018","v":"2"},{"n":"2017","v":"3"},{"n":"2016","v":"22"}]},{"key":"sort","name":"排序","value":[{"n":"热门","v":"hot"},{"n":"评分","v":"rating"},{"n":"更新","v":"update"}]}]
  22. },
  23. // filter_url:'sort={{fl.sort or "hot"}}&year={{fl.year or "0"}}',
  24. filter_url:'sort={{fl.sort or "update"}}&year={{fl.year or "0"}}&category_id={{fl.cateId}}',
  25. filter_def:{
  26. 0:{cateId:'0'},
  27. 1:{cateId:'1'},
  28. 2:{cateId:'2'},
  29. 3:{cateId:'3'},
  30. 4:{cateId:'4'}
  31. },
  32. headers:{
  33. 'User-Agent':'jianpian-android/350',
  34. 'JPAUTH':'y261ow7kF2dtzlxh1GS9EB8nbTxNmaK/QQIAjctlKiEv'
  35. },
  36. timeout:5000,
  37. limit:8,
  38. play_parse:true,
  39. play_json:[{
  40. re:'*',
  41. json:{
  42. parse:0,
  43. jx:0
  44. }
  45. }],
  46. lazy:'',
  47. // double:true,
  48. 图片来源:'@Referer=www.jianpianapp.com@User-Agent=jianpian-version353',
  49. // 推荐:'json:data;room;*;cover;*;*',
  50. 推荐:'json:.video;*;*;*;*',
  51. 一级:'json:data;title;path;playlist.title;id',
  52. 二级:{
  53. // title:'data.title',
  54. title:'data.title;data.types[0].name',
  55. // desc:';data.description;data.id',
  56. desc:'data.score;data.year.title;data.area.title;data.actors[0].name;data.directors[0].name',
  57. img:'data.thumbnail',
  58. // content:'data.thumbnail',
  59. content:'data.description',
  60. is_json:1,
  61. tabs:`js:
  62. TABS = [];
  63. if (html.data.have_ftp_ur == 1) {
  64. TABS.push("边下边播超清版")
  65. }
  66. if (html.data.have_m3u8_ur == 1) {
  67. TABS.push("在线点播普清版")
  68. }
  69. `,
  70. lists:`js:
  71. log(TABS);
  72. LISTS = [];
  73. TABS.forEach(function(tab) {
  74. if (/边下边播/.test(tab)) {
  75. let ftp = html.data.new_ftp_list;
  76. let d = ftp.map(function(it) {
  77. return it.title + "$" + (/m3u8/.test(it.url) ? play_url + it.url : "tvbox-xg:" + it.url)
  78. });
  79. LISTS.push(d)
  80. } else if (/在线点播/.test(tab)) {
  81. let m3u = html.data.new_m3u8_list;
  82. let d = m3u.map(function(it) {
  83. return it.title + "$" + (/m3u8/.test(it.url) ? play_url + it.url : "tvbox-xg:" + it.url)
  84. });
  85. LISTS.push(d)
  86. }
  87. });
  88. `,
  89. },
  90. 搜索:'json:data;*;thumbnail;mask;*',
  91. }