mirror of
https://github.com/ultrasn0w/huso.git
synced 2025-12-14 05:39:52 +01:00
MAL progress fetch
This commit is contained in:
16
klotz.go
16
klotz.go
@@ -53,9 +53,10 @@ type AnimeStudio struct {
|
||||
}
|
||||
|
||||
type WatchUser struct {
|
||||
Username string `json:"username"`
|
||||
MalID int64 `json:"malId"`
|
||||
Progress int `json:"progress"`
|
||||
Username string `json:"username"`
|
||||
MalID int64 `json:"malId"`
|
||||
Progress int `json:"progress"`
|
||||
Updated time.Time `json:"updated"`
|
||||
}
|
||||
|
||||
type UserData struct {
|
||||
@@ -130,7 +131,14 @@ type AnimeDetailMal struct {
|
||||
|
||||
type AnimeListMal struct {
|
||||
Data []struct {
|
||||
Node AnimeDetailMal `json:"node"`
|
||||
Node AnimeDetailMal `json:"node"`
|
||||
ListStatus struct {
|
||||
Status string `json:"status"`
|
||||
Score int `json:"score"`
|
||||
NumEpisodesWatched int `json:"num_episodes_watched"`
|
||||
IsRewatching bool `json:"is_rewatching"`
|
||||
UpdatedAt time.Time `json:"updated_at"`
|
||||
} `json:"list_status"`
|
||||
} `json:"data"`
|
||||
Paging struct {
|
||||
Next string `json:"next"`
|
||||
|
||||
Reference in New Issue
Block a user