From 5a54f3428df40363791a0489263d2b507f2b96fd Mon Sep 17 00:00:00 2001 From: ygfxz <1126598912@qq.com> Date: Wed, 11 Oct 2023 13:24:24 +0000 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E6=96=87=E4=BB=B6=E8=87=B3?= =?UTF-8?q?=20'js'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- js/酷狗MV.js | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 js/酷狗MV.js diff --git a/js/酷狗MV.js b/js/酷狗MV.js new file mode 100644 index 0000000..66cf93e --- /dev/null +++ b/js/酷狗MV.js @@ -0,0 +1,21 @@ +var rule = { + title:'酷狗MV', + host:'https://www.kugou.com', + homeUrl:'/mvweb/html/', + url:'/mvweb/html/index_fyclass_fypage.html', + searchUrl:'https://api.linhun.vip/api/kgmv?apiKey=e7e165ab27316db14467c07e00f3820d&name=**&n=', + searchable:2, + quickSearch:0, + class_parse:'#radioList&ⅆa&&Text;a&&href;.*/index_(\\d+)_1.html', + headers:{ + 'User-Agent':'PC_UA' + }, + timeout:5000, + play_parse:true, + 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}', + limit:6, + 推荐:'*', + 一级:'.mvlist li;a&&title;img&&_src;;a&&href', + 二级:'*', + 搜索:'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)', +} \ No newline at end of file