Skip to content

Commit 22b7877

Browse files
committed
2 parents 35607f5 + 60af95a commit 22b7877

4 files changed

Lines changed: 66 additions & 0 deletions

File tree

interface.d.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1474,6 +1474,20 @@ export function artist_new_song(
14741474
} & RequestBaseConfig,
14751475
): Promise<Response>
14761476

1477+
export function artist_new_song_playall(
1478+
params: RequestBaseConfig,
1479+
): Promise<Response>
1480+
1481+
export function artist_new_song_mv_list_v2(
1482+
params: {
1483+
startTimestamp?: number | string
1484+
before?: number | string
1485+
sourceType?: number | string
1486+
limit?: number | string
1487+
firstRequest?: boolean | string
1488+
} & RequestBaseConfig,
1489+
): Promise<Response>
1490+
14771491
export function artist_detail(
14781492
params: {
14791493
id: number | string
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
// 获取关注歌手的新歌曲和 MV
2+
3+
const createOption = require('../util/option.js')
4+
module.exports = (query, request) => {
5+
const data = {
6+
startTimestamp: query.startTimestamp || query.before || Date.now(),
7+
sourceType: query.sourceType || 1,
8+
limit: query.limit || 10,
9+
firstRequest: query.firstRequest ?? true,
10+
}
11+
return request(
12+
`/api/sub/artist/new/works/song-mv/list/v2`,
13+
data,
14+
createOption(query, 'eapi'),
15+
)
16+
}

module/artist_new_song_playall.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// 获取所有关注歌手最近的 50 首新歌
2+
3+
const createOption = require('../util/option.js')
4+
module.exports = (query, request) => {
5+
return request(
6+
`/api/sub/artist/new/works/song/playall`,
7+
{},
8+
createOption(query, 'eapi'),
9+
)
10+
}

public/docs/home.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3612,6 +3612,32 @@ type='1009' 获取其 id, 如`/search?keywords= 代码时间 &type=1009`
36123612

36133613
**调用例子 :** `/artist/new/song?limit=1` `/artist/new/song?limit=1&before=1602777625000`
36143614

3615+
### 关注歌手最近新歌 - 播放全部
3616+
3617+
说明 : 登录后调用此接口可获取所有关注歌手最近的 50 首新歌
3618+
3619+
**接口地址 :** `/artist/new/song/playall`
3620+
3621+
**调用例子 :** `/artist/new/song/playall`
3622+
3623+
### 关注歌手新作品(歌曲/MV)
3624+
3625+
说明 : 登录后调用此接口可分页获取关注歌手的新歌曲和 MV
3626+
3627+
**可选参数 :** `limit`: 返回数量,默认为 10
3628+
3629+
`startTimestamp`: 时间游标,首次请求默认为当前时间,后续请求传入上一页返回的时间游标
3630+
3631+
`before`: `startTimestamp` 的别名
3632+
3633+
`sourceType`: 作品来源类型,已确认 `1` 表示新歌,其他取值待确认,默认为 `1`
3634+
3635+
`firstRequest`: 是否首次请求,默认为 `true`,翻页时传 `false`
3636+
3637+
**接口地址 :** `/artist/new/song/mv/list/v2`
3638+
3639+
**调用例子 :** `/artist/new/song/mv/list/v2` `/artist/new/song/mv/list/v2?startTimestamp=1783680576099&sourceType=1&limit=10&firstRequest=false`
3640+
36153641
### 关注歌手新 MV
36163642

36173643
说明 :登录后调用此接口可获取关注歌手新 MV

0 commit comments

Comments
 (0)