diff options
author | Vidhu Kant Sharma <vidhukant@vidhukant.xyz> | 2022-06-29 23:46:53 +0530 |
---|---|---|
committer | Vidhu Kant Sharma <vidhukant@vidhukant.xyz> | 2022-06-29 23:46:53 +0530 |
commit | 1395d849470cc564d593bd2074a69f012e4f70ce (patch) | |
tree | c14d064e86122add55340051f98c145b882d4878 /mal/status.go | |
parent | ccb1cf8c1679d5e8a401a85151ef9882e4293b81 (diff) |
migrated from MAL2Go v1 to v2
Diffstat (limited to 'mal/status.go')
-rw-r--r-- | mal/status.go | 24 |
1 files changed, 16 insertions, 8 deletions
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) + // } } |