aboutsummaryrefslogtreecommitdiff
path: root/mal
diff options
context:
space:
mode:
authorVidhu Kant Sharma <vidhukant@vidhukant.com>2023-08-15 15:13:21 +0530
committerVidhu Kant Sharma <vidhukant@vidhukant.com>2023-08-15 15:13:21 +0530
commitb20ed57d3ca8a88c32ee0cb48bed339bce5915d6 (patch)
tree6e3a4b5f7d7a1c1afe62b9b79248cd9c68f63237 /mal
parentfff3dadabc321871e6819392efc605c6dffe2e69 (diff)
fixed errors due to mg
Diffstat (limited to 'mal')
-rw-r--r--mal/list.go2
-rw-r--r--mal/seasonals.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/mal/list.go b/mal/list.go
index f00edd9..0430dc7 100644
--- a/mal/list.go
+++ b/mal/list.go
@@ -46,7 +46,7 @@ func AnimeList(user, status, sort string) []mg.Anime {
}
// TODO: return all the list items using loop
-func MangaList(user, status, sort string) []m.Manga {
+func MangaList(user, status, sort string) []mg.Manga {
var res []mg.Manga
_, err := MALClient.GetMangaList(&res, &mg.ListParams{
Username: user,
diff --git a/mal/seasonals.go b/mal/seasonals.go
index 29cfea6..d2cb420 100644
--- a/mal/seasonals.go
+++ b/mal/seasonals.go
@@ -25,7 +25,7 @@ import (
"strconv"
)
-func GetSeasonalAnime(season a.Season, sort string) []mg.Anime {
+func GetSeasonalAnime(season mg.Season, sort string) []mg.Anime {
var res []mg.Anime
err := MALClient.GetSeasonalAnime(&res, &mg.SeasonalParams{
Year: strconv.Itoa(season.Year),