From 11e6bcbd1ce546a36e3cb043885da49cfa67c78d Mon Sep 17 00:00:00 2001 From: binaryify Date: Wed, 18 Mar 2020 16:57:43 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=8E=A5=E5=8F=A3=E5=92=8C?= =?UTF-8?q?=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.MD | 5 +++ docs/README.md | 4 +-- module/artist_list.js | 2 +- module/lyric.js | 14 +++++--- package.json | 84 +++++++++++++++++++++---------------------- 5 files changed, 60 insertions(+), 49 deletions(-) diff --git a/CHANGELOG.MD b/CHANGELOG.MD index 59038e468eb..7305ce666a2 100644 --- a/CHANGELOG.MD +++ b/CHANGELOG.MD @@ -1,4 +1,9 @@ # 更新日志 +### 3.25.3 | 2020.03.18 +- 更新歌词,歌手分类列表接口 + +- 更新文档 + ### 3.25.3 | 2019.11.08 - 升级依赖,去除多余依赖 diff --git a/docs/README.md b/docs/README.md index 0c70961edfa..f17f79ec887 100644 --- a/docs/README.md +++ b/docs/README.md @@ -494,12 +494,12 @@ name:歌单名字 desc:歌单描述 -tags:歌单tag +tags:歌单tag ,多个用 `;` 隔开,只能用官方规定标签 ``` **接口地址 :** `/playlist/update` -**调用例子 :** `/playlist/update?id=24381616&name=新歌单&desc=描述&tags=学习` +**调用例子 :** `/playlist/update?id=24381616&name=新歌单&desc=描述&tags=欧美` ### 更新歌单描述 说明 : 登陆后调用此接口,可以单独更新用户歌单描述 diff --git a/module/artist_list.js b/module/artist_list.js index 4369367a590..5a12f52cbad 100644 --- a/module/artist_list.js +++ b/module/artist_list.js @@ -32,7 +32,7 @@ module.exports = (query, request) => { total: true } return request( - 'POST', `https://music.163.com/weapi/artist/list`, data, + 'POST', `https://music.163.com/api/v1/artist/list`, data, {crypto: 'weapi', cookie: query.cookie, proxy: query.proxy} ) } \ No newline at end of file diff --git a/module/lyric.js b/module/lyric.js index a795cb8d2fb..760dc417dd4 100644 --- a/module/lyric.js +++ b/module/lyric.js @@ -1,11 +1,17 @@ // 歌词 module.exports = (query, request) => { + query.cookie.os = 'pc'; const data = { - id: query.id + id: query.id, + lv: -1, + kv: -1, + tv: -1 } return request( - 'POST', `https://music.163.com/weapi/song/lyric?lv=-1&kv=-1&tv=-1`, data, - {crypto: 'linuxapi', cookie: query.cookie, proxy: query.proxy} + 'POST', + `https://music.163.com/api/song/lyric`, + data, + { crypto: 'linuxapi', cookie: query.cookie, proxy: query.proxy } ) -} \ No newline at end of file +} diff --git a/package.json b/package.json index 65389a056b4..d089b2a61ce 100644 --- a/package.json +++ b/package.json @@ -1,44 +1,44 @@ { - "name": "NeteaseCloudMusicApi", - "version": "3.25.3", - "description": "网易云音乐 NodeJS 版 API", - "scripts": { - "start": "node app.js", - "test": "mocha -r intelli-espower-loader -t 20000 app.test.js --exit", - "lint-fix": "eslint --fix --ext .js app.js module/ util/ test/ " - }, - "keywords": [ - "网易云音乐", - "网易云", - "音乐", - "网易云音乐nodejs" - ], - "husky": { - "hooks": { - "pre-commit": "lint-staged" + "name": "NeteaseCloudMusicApi", + "version": "3.25.4", + "description": "网易云音乐 NodeJS 版 API", + "scripts": { + "start": "node app.js", + "test": "mocha -r intelli-espower-loader -t 20000 app.test.js --exit", + "lint-fix": "eslint --fix --ext .js app.js module/ util/ test/ " + }, + "keywords": [ + "网易云音乐", + "网易云", + "音乐", + "网易云音乐nodejs" + ], + "husky": { + "hooks": { + "pre-commit": "lint-staged" + } + }, + "lint-staged": { + "*.js": [ + "eslint --fix", + "git add" + ] + }, + "author": "binaryify", + "license": "MIT", + "dependencies": { + "apicache": "^1.5.2", + "express": "^4.17.1", + "pac-proxy-agent": "^3.0.1", + "request": "^2.88.0" + }, + "devDependencies": { + "eslint": "^6.6.0", + "eslint-plugin-html": "^6.0.0", + "husky": "^3.0.9", + "intelli-espower-loader": "^1.0.1", + "lint-staged": "^9.4.2", + "mocha": "^6.2.2", + "power-assert": "^1.6.1" } - }, - "lint-staged": { - "*.js": [ - "eslint --fix", - "git add" - ] - }, - "author": "binaryify", - "license": "MIT", - "dependencies": { - "apicache": "^1.5.2", - "express": "^4.17.1", - "pac-proxy-agent": "^3.0.1", - "request": "^2.88.0" - }, - "devDependencies": { - "eslint": "^6.6.0", - "eslint-plugin-html": "^6.0.0", - "husky": "^3.0.9", - "intelli-espower-loader": "^1.0.1", - "lint-staged": "^9.4.2", - "mocha": "^6.2.2", - "power-assert": "^1.6.1" - } -} +} \ No newline at end of file