From 6abd63d6e07531c9d2235244ef2315619401aa5b Mon Sep 17 00:00:00 2001 From: milarin Date: Wed, 18 Jan 2023 10:23:25 +0100 Subject: [PATCH] use all media list statuses in GetAnimeListByAnimeID --- anilist.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/anilist.go b/anilist.go index 2aca37e..b0d15bb 100644 --- a/anilist.go +++ b/anilist.go @@ -9,13 +9,13 @@ import ( ) func GetAnimeListByAnimeID() (map[anilist.MediaID]*anilist.MediaList, error) { - watchingAnimesChannel, err := GetCurrentlyWatchingAnimes() + animeListChannel, err := GetCurrentlyWatchingAnimes(AllMediaListStatuses...) if err != nil { return nil, err } toMapFunc := func(entry *anilist.MediaList) (anilist.MediaID, *anilist.MediaList) { return entry.MediaID, entry } - return channel.ToMap(watchingAnimesChannel, toMapFunc), nil + return channel.ToMap(animeListChannel, toMapFunc), nil } func GetCurrentlyWatchingAnimes(statuses ...anilist.MediaListStatus) (<-chan *anilist.MediaList, error) {