diff --git a/anime_episode.go b/anime_episode.go index 59399da..ec67a11 100644 --- a/anime_episode.go +++ b/anime_episode.go @@ -3,6 +3,6 @@ package model import "git.milar.in/milarin/anilist" type AnimeEpisode struct { - Anime *anilist.Media + Anime anilist.Media Episode int } diff --git a/parsed_file.go b/parsed_file.go index 3770ce3..bd7dc7b 100644 --- a/parsed_file.go +++ b/parsed_file.go @@ -32,7 +32,7 @@ func (f *ParsedFile) GetResolution() Resolution { func (f *ParsedFile) AnimeEpisode() AnimeEpisode { return AnimeEpisode{ - Anime: f.Anime, + Anime: *f.Anime, Episode: f.Episode, } }