西风影视.js 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. var rule={
  2. title:'星空影院',
  3. host:'https://www.2000xk.com/',
  4. url:'/hd/fyclass/by/time/page/fypage.html',
  5. filterable:1,
  6. //filter_url:'/class/{{fl.class}}/page/fypage/year/{{fl.year}}',
  7. class_name:'电视剧&电影&动漫&综艺&短剧',
  8. class_url:'dianshiju&dianying&dongman&zongyi&duanju',
  9. filter: {},
  10. searchUrl:'vod/search.html?wd=**&submit=',
  11. searchable:2,//是否启用全局搜索,
  12. quickSearch:0,//是否启用快速搜索,
  13. filterable:0,//是否启用分类筛选,
  14. play_parse:true,
  15. lazy:`js:
  16. let html = request(input);
  17. let hconf = html.match(/r player_.*?=(.*?)</)[1];
  18. let json = JSON5.parse(hconf);
  19. let url = json.url;
  20. if (json.encrypt == '1') {
  21. url = unescape(url);
  22. } else if (json.encrypt == '2') {
  23. url = unescape(base64Decode(url));
  24. }
  25. if (/\\.(m3u8|mp4|m4a|mp3)/.test(url)) {
  26. input = {
  27. parse: 0,
  28. jx: 0,
  29. url: url,
  30. };
  31. } else {
  32. input;
  33. }`,
  34. limit:6,
  35. 推荐:'*',
  36. double:true, // 推荐内容是否双层定位
  37. 一级:'body&&.stui-vodlist__box;a&&title;a&&data-original;.text-right&&Text;a&&href',
  38. 二级:{
  39. "title": "body&&.stui-content__detail h1&&Text;p.data:eq(1)&&Text",
  40. "img": "img.lazyload&&data-original",
  41. "desc": ".stui-content__detail p.data:eq(1)&&Text;.stui-content__detail p.data:eq(4)&&Text",
  42. "content": ".detail-sketch&&Text",
  43. "tabs": ".stui-pannel__head h3",
  44. "lists": ".stui-content__playlist:eq(#id) li"
  45. },
  46. 搜索:'body&&.stui-vodlist__media;a&&title;a&&data-original;.text-muted&&Text;a&&href',
  47. tab_remove:['电视剧频道','本周热门电视剧'],
  48. tab_rename:{'百度云':'尤东风💠百度云','腾讯云':'尤东风💠腾讯云','优酷云':'尤东风💠优酷云','微软云':'尤东风💠微软云','乐视云':'尤东风💠乐视云','搜狐云':'尤东风💠搜狐云','字节云':'尤东风💠字节云','阿里云':'尤东风💠阿里云','西瓜云':'尤东风💠西瓜云','小米云':'尤东风💠小米云','滴滴云':'尤东风💠滴滴云','哔哩云':'尤东风💠哔哩云','新浪云':'尤东风💠新浪云','京东云':'尤东风💠京东云'},
  49. }