aboutsummaryrefslogtreecommitdiff
path: root/anime
diff options
context:
space:
mode:
authorVidhu Kant Sharma <vidhukant@protonmail.ch>2022-03-07 23:45:31 +0530
committerVidhu Kant Sharma <vidhukant@protonmail.ch>2022-03-07 23:45:31 +0530
commit6eb07bc323e04785b5031c8332643b243d63f073 (patch)
treea8e67106bfb91c785191b8ab53ecce96757b13ab /anime
parent515c6f76146d37afebdbd24883717b4e1f30151d (diff)
fixed num_episodes_watched not working in anime package
Diffstat (limited to 'anime')
-rw-r--r--anime/anime.structs.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/anime/anime.structs.go b/anime/anime.structs.go
index 4132989..9466232 100644
--- a/anime/anime.structs.go
+++ b/anime/anime.structs.go
@@ -21,8 +21,8 @@ import (
)
type AnimeStatistics struct {
+ NumListUsers int `json:"num_list_users"`
Status u.StatusStatistics `json:"status"`
- NumListUsers int `json:"num_list_users"`
}
type Broadcast struct {
@@ -57,7 +57,7 @@ type ListStatus struct {
UpdatedAt string `json:"updated_at"`
// these fields are exclusive to anime
- EpWatched int `json:"num_watched_episodes"`
+ EpWatched int `json:"num_episodes_watched"`
IsRewatching bool `json:"is_rewatching"`
TimesRewatched int `json:"num_times_rewatched"`
RewatchValue int `json:"rewatch_value"`
@@ -67,7 +67,7 @@ type Anime struct {
Id int `json:"id"`
Title string `json:"title"`
MainPicture u.Picture `json:"main_picture"`
- AltTitles u.AltTitles `json:"alternative_titles"`
+ AltTitles u.AltTitles `json:"alternative_titles"`
StartDate string `json:"start_date"`
EndDate string `json:"end_date"`
Synopsis string `json:"synopsis"`