From 7701a09a0de0860ad92c0ae6b85cec67d064d0c5 Mon Sep 17 00:00:00 2001 From: milarin Date: Tue, 17 Jan 2023 09:14:10 +0100 Subject: [PATCH] make AnimeEpisode indexable for maps --- anime_episode.go | 2 +- parsed_file.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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, } }