diff --git a/anime_episode.go b/anime_episode.go index ec67a11..59399da 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 bd7dc7b..3770ce3 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, } }