@neteasecloudmusicapienhanced/api 4.29.14 → 4.29.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/module/cloud.js CHANGED
@@ -1,9 +1,10 @@
1
- const mm = require('music-metadata')
2
1
  const uploadPlugin = require('../plugins/songUpload')
3
2
  const md5 = require('md5')
4
3
  const createOption = require('../util/option.js')
5
4
  const logger = require('../util/logger.js')
5
+ let mm
6
6
  module.exports = async (query, request) => {
7
+ mm = require('music-metadata')
7
8
  let ext = 'mp3'
8
9
  // if (query.songFile.name.indexOf('flac') > -1) {
9
10
  // ext = 'flac'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neteasecloudmusicapienhanced/api",
3
- "version": "4.29.14",
3
+ "version": "4.29.16",
4
4
  "description": "为停更的网易云音乐 NodeJs API 提供持续的维护!",
5
5
  "scripts": {
6
6
  "dev": "nodemon app.js",
@@ -73,7 +73,7 @@
73
73
  "express": "^5.1.0",
74
74
  "express-fileupload": "^1.5.2",
75
75
  "md5": "^2.3.0",
76
- "music-metadata": "^7.14.0",
76
+ "music-metadata": "^11.9.0",
77
77
  "node-forge": "^1.3.1",
78
78
  "pac-proxy-agent": "^7.2.0",
79
79
  "qrcode": "^1.5.4",
@@ -88,7 +88,7 @@
88
88
  "@types/express": "^5.0.5",
89
89
  "@types/express-fileupload": "^1.5.1",
90
90
  "@types/mocha": "^10.0.10",
91
- "@types/node": "24.9.1",
91
+ "@types/node": "24.10.0",
92
92
  "@typescript-eslint/eslint-plugin": "8.46.2",
93
93
  "@typescript-eslint/parser": "8.46.2",
94
94
  "eslint": "9.39.0",
@@ -2791,6 +2791,19 @@ type : 地区
2791
2791
 
2792
2792
  **调用例子 :** `/cloud/match?uid=32953014&sid=aaa&asid=bbb` `/cloud/match?uid=32953014&sid=bbb&asid=0`
2793
2793
 
2794
+ ### 获取云盘歌词
2795
+ 说明: 调用此接口, 获取云盘歌曲的歌词,歌词来自此文件的音乐元数据`LYRICS`标签。
2796
+
2797
+ **可选参数 :**
2798
+
2799
+ `uid`: 用户 id
2800
+
2801
+ `sid`: 云盘的歌曲 id
2802
+
2803
+ **接口地址:** `/cloud/lyric/get`
2804
+
2805
+ **调用例子:** `/cloud/lyric/get?uid=1&sid=aaa`
2806
+
2794
2807
  ### 电台 banner
2795
2808
 
2796
2809
  说明 : 调用此接口,可获取电台 banner
@@ -4848,19 +4861,6 @@ let data = encodeURIComponent(
4848
4861
 
4849
4862
  **调用例子:** `/broadcast/channel/list`
4850
4863
 
4851
- ### 获取云盘歌词
4852
- 说明: 调用此接口, 获取云盘歌曲的歌词,歌词来自此文件的音乐元数据`LYRICS`标签。
4853
-
4854
- **可选参数 :**
4855
-
4856
- `uid`: 用户 id
4857
-
4858
- `sid`: 云盘的歌曲 id
4859
-
4860
- **接口地址:** `/cloud/lyric/get`
4861
-
4862
- **调用例子:** `/cloud/lyric/get`
4863
-
4864
4864
  ## 离线访问此文档
4865
4865
 
4866
4866
  此文档同时也是 Progressive Web Apps(PWA), 加入了 serviceWorker, 可离线访问
package/public/index.html CHANGED
@@ -71,7 +71,7 @@
71
71
  <h2>调试部分</h2>
72
72
  <pre><code>curl -s {origin}/inner/version
73
73
  curl -s {origin}/search?keywords=网易云</code></pre>
74
- <p style="margin-top:10px"> · <a href="/api.html">交互式调试</a> · <a href="/qrlogin.html">二维码登录示例</a> · <a href="/unblock_test.html">解灰测试</a></p> · <a href="/audio_match_demo/index.html">听歌识曲 Demo</a></p> · <a href="/cloud.html">云盘上传</a></p> · <a href="/playlist_import.html">歌单导入</a></p> · <a href="/eapi_decrypt.html">EAPI 解密</p>
74
+ <p style="margin-top:10px"> · <a href="/api.html">交互式调试</a> · <a href="/qrlogin.html">二维码登录示例</a> · <a href="/unblock_test.html">解灰测试</a></p> · <a href="/audio_match_demo/index.html">听歌识曲 Demo</a></p> · <a href="/cloud.html">云盘上传</a></p> · <a href="/playlist_import.html">歌单导入</a></p> · <a href="/eapi_decrypt.html">EAPI 解密</p> · <a href="/listen_together_host.html">一起听示例</p> · <a href="/playlist_cover_update.html">更新歌单封面示例</p> · <a href="/avatar_update.html">头像更新示例</p>
75
75
  </section>
76
76
 
77
77
  <footer class="site-footer">