神马影视.js 2.2 KB

12345678910111213141516171819202122232425262728
  1. var rule = {
  2. title:'神马影视',
  3. host:'https://www.smdyy.cc',
  4. // homeUrl:'/',
  5. url:'/list/fyclass-fypage.html',
  6. headers:{
  7. 'User-Agent':'MOBILE_UA',
  8. "Cookie": "searchneed=ok"
  9. },
  10. searchUrl:'/search/page/fypage/wd/**.html',
  11. searchable:2,
  12. // class_name:'电影&网剧&剧集&动漫&综艺&记录',
  13. // class_url:'20&1&2&3&4&23',
  14. class_parse:'.stui-header__menu li:gt(0):lt(5);a&&Text;a&&href;/(\\d+).html',
  15. play_parse:true,
  16. // lazy:'干饭',
  17. // lazy:'@js:cacheUrl = d.getParse(input);print(cacheUrl);input=cacheUrl',
  18. // lazy:'js:cacheUrl = d.getParse(input);print(cacheUrl);input=cacheUrl',
  19. // lazy:'js:cacheUrl=d.getParse(input);if(cacheUrl){input=cacheUrl}else{try{let html=fetch(input,{headers:d.headers,timeout:d.timeout,encoding:d.encoding});let ret=html.match(/var player_(.*?)=(.*?)</)[2];let url=JSON.parse(ret).url;if(url.length>10){real_url="https://player.buyaotou.xyz/?url="+url;d.saveParse(input,real_url);input=real_url}}catch(e){print("网络请求发生错误:"+e.message)}}',
  20. // lazy:'js:cacheUrl=getParse(input);if(cacheUrl){input=cacheUrl}else{try{let html=fetch(input,fetch_params);let ret=html.match(/var player_(.*?)=(.*?)</)[2];let url=JSON.parse(ret).url;if(url.length>10){real_url="https://player.buyaotou.xyz/?url="+url;saveParse(input,real_url);input=real_url}}catch(e){print("网络请求发生错误:"+e.message)}}',
  21. limit:5,
  22. 推荐:'ul.stui-vodlist.clearfix;li;a&&title;.lazyload&&data-original;.pic-text.text-right&&Text;a&&href',
  23. double:true, // 推荐内容是否双层定位
  24. 一级:'body .stui-vodlist__box;a&&title;.lazyload&&data-original;.pic-text.text-right&&Text;a&&href',
  25. 二级:{"title":"h1.title&&Text;.stui-content__detail p:eq(1)&&Text","img":".lazyload&&data-original","desc":".stui-content__detail p:eq(-3)&&Text;.stui-content__detail p:eq(-2)&&Text","content":".stui-content__detail p.detail&&Text","tabs":".stui-vodlist__head h3","lists":".stui-vodlist__head:eq(#id)&&.stui-content__playlist li"},
  26. // 搜索:'body .module-item;.module-card-item-title&&Text;.lazyload&&data-original;.module-item-note&&Text;a&&href;.module-info-item-content&&Text',
  27. }