From 3be1385ac1071e62c740796d28b969d09e3c027e Mon Sep 17 00:00:00 2001 From: alantang <107459091+alantang1977@users.noreply.github.com> Date: Tue, 6 Feb 2024 13:41:06 +0800 Subject: [PATCH] Add files via upload --- js/喜马拉雅.js | 21 +++++++++++++++++++++ js/蜻蜓FM.js | 28 ++++++++++++++++++++++++++++ 2 files changed, 49 insertions(+) create mode 100644 js/喜马拉雅.js create mode 100644 js/蜻蜓FM.js diff --git a/js/喜马拉雅.js b/js/喜马拉雅.js new file mode 100644 index 0000000..0015433 --- /dev/null +++ b/js/喜马拉雅.js @@ -0,0 +1,21 @@ +var rule = { + title: '喜马拉雅', + host: 'https://www.ximalaya.com', + homeUrl: '/channel/7/',//网站的首页链接,用于分类获取和推荐获取 + url: '/revision/metadata/v2/channel/albums?pageNum=fypage&pageSize=50&sort=1&metadata=&groupId=fyclass', + detailUrl: '/revision/album/v1/getTracksList?albumId=fyid',//二级详情拼接链接(json格式用) + searchUrl: '/revision/search/main?core=album&kw=**&page=fypage&spellchecker=true&rows=20&condition=relation&device=iPhone&fq=&paidFilter=false', + searchable: 2, + quickSearch: 0, + headers: { + 'User-Agent': 'PC_UA' + }, + class_parse: '.first .channel;a&&Text;a&&href;.*/(.*?)/', + play_parse: true, + lazy: 'js:let result={};let Play_Ref="https://www.ximalaya.com/sound/"+input+"/";let url="https://www.ximalaya.com/revision/play/v1/audio?id="+input+"&ptype=1";let html=request(url,{headers:{"Referer":Play_Ref,"User-Agent":PC_UA}});let jo=JSON.parse(html);let purl=jo["data"]["src"];result["parse"]=0;result["playUrl"]="";result["url"]=purl;result["header"]="";input=result;', + limit: 6, + 推荐: 'js:let d=[];function home_lists(){let lists=[];let html=request(input);let jo=JSON.parse(html.match(/window.__INITIAL_STATE__ =(.*?);100){for(let i=2;i