From 3d23ed955d11651bd9bacda02070b8d13b6922a1 Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Sat, 6 Aug 2022 09:58:16 +0530 Subject: added volumes command --- mal/episodes.go | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'mal') diff --git a/mal/episodes.go b/mal/episodes.go index 43b69c0..0940af5 100644 --- a/mal/episodes.go +++ b/mal/episodes.go @@ -43,3 +43,12 @@ func SetChapters(mangaId, prevValue int, ch string) m.UpdateResponse { } return res } + +func SetVolumes(mangaId, prevValue int, vol string) m.UpdateResponse { + res, err := userMangaClient.SetVolumesRead(mangaId, util.ParseNumeric(vol, prevValue)) + if err != nil { + fmt.Println("MyAnimeList returned error while updating volumes:", err) + os.Exit(1) + } + return res +} -- cgit v1.2.3