mirror of
https://github.com/NeteaseCloudMusicApiEnhanced/api-enhanced.git
synced 2026-05-13 11:45:07 +00:00
feat: 新增灰色歌曲其他版本推荐接口
This commit is contained in:
parent
0395d087d9
commit
b6be789ccd
4
interface.d.ts
vendored
4
interface.d.ts
vendored
@ -1166,6 +1166,10 @@ export function song_url_v1(
|
||||
params: { id: string | number; level: SoundQualityType } & RequestBaseConfig,
|
||||
): Promise<Response>
|
||||
|
||||
export function song_copyright_rcmd(
|
||||
params: { songid: string | number; id?: string | number } & RequestBaseConfig,
|
||||
): Promise<Response>
|
||||
|
||||
export function top_album(
|
||||
params: {
|
||||
area?: AlbumListArea
|
||||
|
||||
9
module/song_copyright_rcmd.js
Normal file
9
module/song_copyright_rcmd.js
Normal file
@ -0,0 +1,9 @@
|
||||
// 灰色歌曲的其他版本推荐
|
||||
|
||||
const createOption = require('../util/option.js')
|
||||
module.exports = (query, request) => {
|
||||
const data = {
|
||||
songid: query.songid || query.id,
|
||||
}
|
||||
return request(`/api/song/copyright/rcmd`, data, createOption(query, 'eapi'))
|
||||
}
|
||||
@ -5318,6 +5318,18 @@ let data = encodeURIComponent(
|
||||
|
||||
**调用例子 :** `/song/creators?id=33894312`
|
||||
|
||||
### 灰色歌曲的其他版本推荐
|
||||
|
||||
说明 : 调用此接口, 传入灰色歌曲 id, 获取该歌曲的其他可播放版本推荐
|
||||
|
||||
**必选参数 :**
|
||||
|
||||
`songid`: 歌曲 id, 可使用 `id` 代替
|
||||
|
||||
**接口地址 :** `/song/copyright/rcmd`
|
||||
|
||||
**调用例子 :** `/song/copyright/rcmd?songid=27946878`
|
||||
|
||||
## 离线访问此文档
|
||||
|
||||
此文档同时也是 Progressive Web Apps(PWA), 加入了 serviceWorker, 可离线访问
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user