kugou.js 991 B

123456789101112131415161718192021
  1. var rule = {
  2. title:'酷狗MV',
  3. host:'https://www.kugou.com',
  4. homeUrl:'/mvweb/html/',
  5. url:'/mvweb/html/index_fyclass_fypage.html',
  6. searchUrl:'https://api.linhun.vip/api/kgmv?apiKey=e7e165ab27316db14467c07e00f3820d&name=**&n=',
  7. searchable:2,
  8. quickSearch:0,
  9. class_parse:'#radioList&ⅆa&&Text;a&&href;.*/index_(\\d+)_1.html',
  10. headers:{
  11. 'User-Agent':'PC_UA'
  12. },
  13. timeout:5000,
  14. play_parse:true,
  15. lazy:'js:if(/mp4/.test(input)){input}else{var mv_name=request(input).match(/mv_name = "(.*?)"/)[1];input=JSON.parse(request("https://api.linhun.vip/api/kgmv?apiKey=e7e165ab27316db14467c07e00f3820d&name="+mv_name+"&n=1")).video}',
  16. limit:6,
  17. 推荐:'*',
  18. 一级:'.mvlist li;a&&title;img&&_src;;a&&href',
  19. 二级:'*',
  20. 搜索:'js:let d=[];let html=request(input);let list=JSON.parse(html).sun;for(let j=1;j<=list;j++){let t=JSON.parse(request(MY_URL+j));d.push({title:t.name,desc:t.author,img:t.img,url:t.video})}setResult(d)',
  21. }