Skip to content

Commit

Permalink
Update types.go
Browse files Browse the repository at this point in the history
  • Loading branch information
buddingworld authored Oct 12, 2024
1 parent 6d68eeb commit 3555dd8
Showing 1 changed file with 17 additions and 10 deletions.
27 changes: 17 additions & 10 deletions extractors/bilibili/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,26 @@ type token struct {
Data tokenData `json:"data"`
}

type bangumiEpData struct {
Aid int `json:"aid"`
Cid int `json:"cid"`
BVid string `json:"bvid"`
ID int `json:"id"`
EpID int `json:"ep_id"`
TitleFormat string `json:"titleFormat"`
LongTitle string `json:"long_title"`
type Interaction struct {
Interaction bool `json:"interaction"`
}

type EpVideoInfo struct {
Aid int `json:"aid"`
Bvid string `json:"bvid"`
Cid int `json:"cid"`
DeliveryBusinessFragmentVideo bool `json:"delivery_business_fragment_video"`
DeliveryFragmentVideo bool `json:"delivery_fragment_video"`
EpID int `json:"ep_id"`
EpStatus int `json:"ep_status"`
Interaction Interaction `json:"interaction"`
LongTitle string `json:"long_title"`
Title string `json:"title"`
}

type bangumiData struct {
EpInfo bangumiEpData `json:"epInfo"`
EpList []bangumiEpData `json:"epList"`
EpInfo EpVideoInfo `json:"epInfo"`
EpList []EpVideoInfo `json:"epList"`
}

type videoPagesData struct {
Expand Down

0 comments on commit 3555dd8

Please sign in to comment.