From 05fe09f3ec167417ea94fc04148ac110f18c4ad6 Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Thu, 16 Jun 2022 22:20:17 +0530 Subject: added api error handling to user/anime and user/manga packages --- user/anime/animelist.structs.go | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'user/anime/animelist.structs.go') diff --git a/user/anime/animelist.structs.go b/user/anime/animelist.structs.go index 80eb01a..c727d97 100644 --- a/user/anime/animelist.structs.go +++ b/user/anime/animelist.structs.go @@ -20,12 +20,15 @@ import ( "github.com/MikunoNaka/MAL2Go/anime" ) -type AnimeListRaw struct { +type animeListRaw struct { Data []struct { Anime anime.Anime `json:"node"` ListStatus anime.ListStatus `json:"list_status"` - } `json:"data"` - Paging anime.ListPaging `json:"paging"` + } `json:"data"` + Paging struct { + NextPage string `json:"next"` + PrevPage string `json:"previous"` + } `json:"paging"` } type UpdateAnimeData struct { @@ -35,7 +38,6 @@ type UpdateAnimeData struct { EpWatched int Priority int TimesRewatched int - // NOTE: idk what RewatchValue is RewatchValue int Tags string Comments string -- cgit v1.2.3