mirror of
https://gitlab.com/Binaryify/neteasecloudmusicapi.git
synced 2025-05-23 22:37:41 +08:00
21 lines
446 B
JavaScript
21 lines
446 B
JavaScript
// 收藏单曲到歌单 从歌单删除歌曲
|
|
|
|
module.exports = (query, request) => {
|
|
const data = {
|
|
op: query.op, // del,add
|
|
pid: query.pid, // 歌单id
|
|
trackIds: '[' + query.tracks + ']', // 歌曲id
|
|
}
|
|
return request(
|
|
'POST',
|
|
`https://music.163.com/weapi/playlist/manipulate/tracks`,
|
|
data,
|
|
{
|
|
crypto: 'weapi',
|
|
cookie: query.cookie,
|
|
proxy: query.proxy,
|
|
realIP: query.realIP,
|
|
}
|
|
)
|
|
}
|