MAL progress fetch

This commit is contained in:
daru
2022-04-18 02:53:09 +02:00
parent 8fe7bf4d4b
commit 994bccb068
7 changed files with 125 additions and 18 deletions

View File

@@ -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"`