You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
709 B
38 lines
709 B
4 years ago
|
// 歌手分类
|
||
|
|
||
|
/*
|
||
|
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,
|
||
|
});
|
||
|
};
|