From 831a57e8d065a01cefe40dd8545770064759eb13 Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Tue, 15 Feb 2022 21:55:56 +0530 Subject: somehow made UpdateAnime work decently --- user/anime/animelist.structs.go | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'user/anime/animelist.structs.go') diff --git a/user/anime/animelist.structs.go b/user/anime/animelist.structs.go index d874f7b..06c40d1 100644 --- a/user/anime/animelist.structs.go +++ b/user/anime/animelist.structs.go @@ -29,14 +29,14 @@ type AnimeListRaw struct { } type UpdateAnimeData struct { - Status string `json:"status"` - IsRewatching bool `json:"is_rewatching"` - Score int `json:"score"` - EpWatched int `json:"num_watched_episodes"` - Priority int `json:"priority"` - TimesRewatched int `json:"num_times_rewatched"` + Status string + IsRewatching bool + Score int + EpWatched int + Priority int + TimesRewatched int // NOTE: idk what RewatchValue is - RewatchValue int `json:"rewatch_value"` - Tags string `json:"tags"` - Comments string `json:"comments"` + RewatchValue int + Tags string + Comments string } -- cgit v1.2.3 From 5c94f2f8e7026b9a4dff874edbf3b4fa3b266516 Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Wed, 16 Feb 2022 22:43:23 +0530 Subject: Defined different functions to update different anime fields --- user/anime/animelist.structs.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'user/anime/animelist.structs.go') diff --git a/user/anime/animelist.structs.go b/user/anime/animelist.structs.go index 06c40d1..cee47d2 100644 --- a/user/anime/animelist.structs.go +++ b/user/anime/animelist.structs.go @@ -1,4 +1,4 @@ -/* mal2go - MyAnimeList V2 API wrapper for Go +/* MAL2Go - MyAnimeList V2 API wrapper for Go * Copyright (C) 2022 Vidhu Kant Sharma * This program is free software: you can redistribute it and/or modify -- cgit v1.2.3