B站影视.js 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. // 搜索验证
  2. var rule = {
  3. title:'B站影视',
  4. // host:'https://bzhanys.com',
  5. host:'https://bzhanyy.com',
  6. url:'/index.php/vod/show/id/fyclass/page/fypage.html',
  7. searchable:2,//是否启用全局搜索,
  8. quickSearch:0,//是否启用快速搜索,
  9. headers:{
  10. 'User-Agent':'PC_UA'
  11. },
  12. class_parse: '.fixed-nav&&.flex:lt(4);li&&Text;li&&data-id;(\\d+)',
  13. play_parse:true,
  14. lazy: $js.toString(() => {
  15. input = {
  16. parse: 1,
  17. url: input,
  18. js: 'document.querySelector("#playleft iframe").contentWindow.document.querySelector("#player").click()',
  19. }
  20. }),
  21. limit:6,
  22. 推荐:'*',
  23. // 推荐:'.movie-list-body&&.movie-list-item;.movie-title&&Text;.Lazy&&data-original;.movie-rating&&Text;a&&href',
  24. 一级:'.movie-list-body&&.movie-list-item;.movie-title&&Text;.Lazy&&data-original;.movie-rating&&Text;a&&href',
  25. // 一级:'json:list;vod_name;vod_pic;vod_score;vod_id',
  26. 二级访问前:'log(MY_URL);MY_URL=MY_URL.replace("/play/","/detail/").replace("/sid/1/nid/1","");log(MY_URL)',
  27. 二级:{
  28. "title":"h1&&title;.scroll-content a:eq(0)&&Text",
  29. "img":".poster&&img&&src",
  30. "desc":";.scroll-content a:eq(1)&&Text;.scroll-content a:eq(2)&&Text;.starLink&&Text;.cr3:eq(0)&&Text",
  31. "content":".detailsTxt--div&&Text",
  32. "tabs":".swiper-wrapper&&a",
  33. "lists":".content_playlist:eq(#id)&&li"
  34. },
  35. searchUrl:'/index.php/vod/search/page/fypage/wd/**.html',
  36. //searchUrl:'/index.php/ajax/suggest?mid=1&wd=**&limit=50',
  37. detailUrl:'/index.php/vod/detail/id/fyid.html',
  38. 搜索:'.movie-list-body&&.vod-search-list;*;*;.getop&&Text;*',
  39. //搜索:'json:list;name;pic;;id',
  40. }