mirror of
https://github.com/qier222/YesPlayMusic.git
synced 2024-11-23 17:02:02 +08:00
38 lines
709 B
JavaScript
38 lines
709 B
JavaScript
// 歌手分类
|
|
|
|
/*
|
|
type 取值
|
|
1:男歌手
|
|
2:女歌手
|
|
3:乐队
|
|
|
|
area 取值
|
|
-1:全部
|
|
7华语
|
|
96欧美
|
|
8:日本
|
|
16韩国
|
|
0:其他
|
|
|
|
initial 取值 a-z/A-Z
|
|
*/
|
|
|
|
module.exports = (query, request) => {
|
|
const data = {
|
|
initial: isNaN(query.initial)
|
|
? (query.initial || '').toUpperCase().charCodeAt() || undefined
|
|
: query.initial,
|
|
offset: query.offset || 0,
|
|
limit: query.limit || 30,
|
|
total: true,
|
|
type: query.type || '1',
|
|
area: query.area,
|
|
};
|
|
return request('POST', `https://music.163.com/api/v1/artist/list`, data, {
|
|
crypto: 'weapi',
|
|
cookie: query.cookie,
|
|
proxy: query.proxy,
|
|
realIP: query.realIP,
|
|
});
|
|
};
|