mirror of
https://gitlab.com/Binaryify/neteasecloudmusicapi.git
synced 2025-05-23 22:37:41 +08:00
更新获取音乐 url
接口,未登录状态返回试听片段 #897
This commit is contained in:
parent
372a81fb6e
commit
d09c19c64f
@ -1,4 +1,7 @@
|
||||
# 更新日志
|
||||
### 3.41.2 | 2020.09.20
|
||||
- 更新`获取音乐 url`接口,未登录状态返回试听片段 [#897](https://github.com/Binaryify/NeteaseCloudMusicApi/issues/897)
|
||||
|
||||
### 3.41.1 | 2020.09.19
|
||||
- 新增`电台个性推荐接口` [#824](https://github.com/Binaryify/NeteaseCloudMusicApi/issues/824)
|
||||
|
||||
|
@ -1093,8 +1093,7 @@ tags: 歌单标签
|
||||
|
||||
### 获取音乐 url
|
||||
|
||||
说明 : 使用歌单详情接口后 , 能得到的音乐的 id, 但不能得到的音乐 url, 调用此接口
|
||||
, 传入的音乐 id( 可多个 , 用逗号隔开 ), 可以获取对应的音乐的 url( 不需要登录 )
|
||||
说明 : 使用歌单详情接口后 , 能得到的音乐的 id, 但不能得到的音乐 url, 调用此接口, 传入的音乐 id( 可多个 , 用逗号隔开 ), 可以获取对应的音乐的 url,未登录状态返回试听片段(返回字段包含被截取的正常歌曲的开始时间和结束时间)
|
||||
|
||||
> 注 : 部分用户反馈获取的 url 会 403,[hwaphon](https://github.com/hwaphon)找到的解决方案是当获取到音乐的 id 后,将 https://music.163.com/song/media/outer/url?id=id.mp3 以 src 赋予 Audio 即可播放
|
||||
|
||||
|
@ -12,13 +12,14 @@ module.exports = (query, request) => {
|
||||
}
|
||||
return request(
|
||||
'POST',
|
||||
`https://music.163.com/api/song/enhance/player/url`,
|
||||
`https://interface3.music.163.com/eapi/song/enhance/player/url`,
|
||||
data,
|
||||
{
|
||||
crypto: 'linuxapi',
|
||||
crypto: 'eapi',
|
||||
cookie: query.cookie,
|
||||
proxy: query.proxy,
|
||||
realIP: query.realIP,
|
||||
url: '/api/song/enhance/player/url',
|
||||
},
|
||||
)
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "NeteaseCloudMusicApi",
|
||||
"version": "3.41.1",
|
||||
"version": "3.41.2",
|
||||
"description": "网易云音乐 NodeJS 版 API",
|
||||
"scripts": {
|
||||
"start": "node app.js",
|
||||
|
Loading…
x
Reference in New Issue
Block a user