mirror of
https://github.com/the1812/Bilibili-Evolved.git
synced 2025-11-04 21:22:45 +08:00
feat(video-info): video stat
This commit is contained in:
parent
ad73831713
commit
9aafa05ad5
@ -12,6 +12,18 @@ export interface VideoPageInfo {
|
||||
pageNumber: number
|
||||
}
|
||||
|
||||
export interface VideoStat {
|
||||
view: number
|
||||
like: number
|
||||
coin: number
|
||||
favorite: number
|
||||
share: number
|
||||
danmaku: number
|
||||
reply: number
|
||||
/** 历史最高排名 */
|
||||
his_rank: number
|
||||
}
|
||||
|
||||
export class VideoInfo {
|
||||
aid: string
|
||||
bvid: string
|
||||
@ -28,6 +40,7 @@ export class VideoInfo {
|
||||
up: UpInfo
|
||||
pages: VideoPageInfo[]
|
||||
redirectUrl?: string
|
||||
stat: VideoStat
|
||||
|
||||
constructor(id: string, bvid = false) {
|
||||
if (bvid) {
|
||||
@ -73,6 +86,7 @@ export class VideoInfo {
|
||||
pageNumber: it.page,
|
||||
}))
|
||||
this.redirectUrl = data.redirect_url
|
||||
this.stat = data.stat
|
||||
return this
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user