From 1395d849470cc564d593bd2074a69f012e4f70ce Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Wed, 29 Jun 2022 23:46:53 +0530 Subject: migrated from MAL2Go v1 to v2 --- mal/status.go | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) (limited to 'mal/status.go') diff --git a/mal/status.go b/mal/status.go index 1e11106..4a581df 100644 --- a/mal/status.go +++ b/mal/status.go @@ -29,10 +29,14 @@ func SetAnimeStatus(animeId int, status string) { fmt.Println("Error while parsing status:", err.Error()) os.Exit(1) } - if resp.Error != "" { - fmt.Println("MyAnimeList reported error on setting anime status", resp.Error, resp.Message) - os.Exit(1) - } + // TODO: do something with resp + fmt.Println(resp) + + // not needed with MAL2Go v2.... probably + // if resp.Error != "" { + // fmt.Println("MyAnimeList reported error on setting anime status", resp.Error, resp.Message) + // os.Exit(1) + // } } func SetMangaStatus(mangaId int, status string) { @@ -41,8 +45,12 @@ func SetMangaStatus(mangaId int, status string) { fmt.Println("Error while parsing status:", err.Error()) os.Exit(1) } - if resp.Error != "" { - fmt.Println("MyAnimeList reported error on setting manga status", resp.Error, resp.Message) - os.Exit(1) - } + // TODO: do something with resp + fmt.Println(resp) + + // not needed with MAL2Go v2.... probably + // if resp.Error != "" { + // fmt.Println("MyAnimeList reported error on setting manga status", resp.Error, resp.Message) + // os.Exit(1) + // } } -- cgit v1.2.3