mirror of
https://github.com/GiriNeko/YesPlayMusic.git
synced 2025-12-17 13:48:02 +00:00
feat: integrate api in electron app
This commit is contained in:
parent
bd29570e31
commit
74bf714c28
240 changed files with 21003 additions and 112 deletions
21
napi/module/top_playlist_highquality.js
Normal file
21
napi/module/top_playlist_highquality.js
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
// 精品歌单
|
||||
|
||||
module.exports = (query, request) => {
|
||||
const data = {
|
||||
cat: query.cat || '全部', // 全部,华语,欧美,韩语,日语,粤语,小语种,运动,ACG,影视原声,流行,摇滚,后摇,古风,民谣,轻音乐,电子,器乐,说唱,古典,爵士
|
||||
limit: query.limit || 50,
|
||||
lasttime: query.before || 0, // 歌单updateTime
|
||||
total: true,
|
||||
};
|
||||
return request(
|
||||
'POST',
|
||||
`https://music.163.com/api/playlist/highquality/list`,
|
||||
data,
|
||||
{
|
||||
crypto: 'weapi',
|
||||
cookie: query.cookie,
|
||||
proxy: query.proxy,
|
||||
realIP: query.realIP,
|
||||
},
|
||||
);
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue