修复歌单收藏/取消收藏歌曲接口报错问题 #1551

This commit is contained in:
binaryify 2022-06-19 12:54:26 +08:00
parent 53ec7ee8e1
commit 7bb0eaaf7e
3 changed files with 6 additions and 3 deletions

View File

@ -1,4 +1,7 @@
# 更新日志
### 4.6.4 | 2022.06.15
- 修复歌单收藏/取消收藏歌曲接口报错问题 #1551
### 4.6.3 | 2022.06.15
- 修复 npm 包文件缺失的问题

View File

@ -1,7 +1,7 @@
// 收藏单曲到歌单 从歌单删除歌曲
module.exports = async (query, request) => {
query.cookie.os = 'pc'
// query.cookie.os = 'pc'
const tracks = query.tracks.split(',')
const data = {
op: query.op, // del,add
@ -13,7 +13,7 @@ module.exports = async (query, request) => {
try {
const res = await request(
'POST',
`https://music.163.com/api/playlist/manipulate/tracks`,
`https://music.163.com/weapi/playlist/manipulate/tracks`,
data,
{
crypto: 'weapi',

View File

@ -1,6 +1,6 @@
{
"name": "NeteaseCloudMusicApi",
"version": "4.6.3",
"version": "4.6.4",
"description": "网易云音乐 NodeJS 版 API",
"scripts": {
"start": "node app.js",