Skip to content

Commit

Permalink
新增沉浸环绕声音质,修改部分文案以同步客户端更改
Browse files Browse the repository at this point in the history
  • Loading branch information
XiaoMengXinX committed Jun 14, 2023
1 parent 3e5c052 commit 789e26b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
3 changes: 2 additions & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1460,7 +1460,8 @@ tags: 歌单标签

**必选参数 :** `id` : 音乐 id
`level`: 播放音质等级, 分为 `standard` => `标准`,`higher` => `较高`, `exhigh`=>`极高`,
`lossless`=>`无损`, `hires`=>`Hi-Res`, `jyeffect` => `鲸云臻音`, `jymaster` => `鲸云母带`
`lossless`=>`无损`, `hires`=>`Hi-Res`, `jyeffect` => `高清环绕声`, `sky` => `沉浸环绕声`,
`jymaster` => `超清母带`

**接口地址 :** `/song/url/v1`

Expand Down
7 changes: 6 additions & 1 deletion module/song_url_v1.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,20 @@
// 歌曲链接 - v1
// 此版本不再采用 br 作为音质区分的标准
// 而是采用 standard, exhigh, lossless, hires, jyeffect, jymaster 进行音质判断
// 而是采用 standard, exhigh, lossless, hires, jyeffect(高清环绕声), sky(沉浸环绕声), jymaster(超清母带) 进行音质判断

const crypto = require('crypto')
module.exports = (query, request) => {
query.cookie.os = 'android'
query.cookie.appver = '8.10.05'
const data = {
ids: '[' + query.id + ']',
level: query.level,
encodeType: 'flac',
}
if (data.level == 'sky') {
data.immerseType = 'c51'
}
console.log(data)
return request(
'POST',
`https://interface.music.163.com/eapi/song/enhance/player/url/v1`,
Expand Down

0 comments on commit 789e26b

Please sign in to comment.