From d3fc649dad67212aa91f219af1fe6644b2fc7bde Mon Sep 17 00:00:00 2001 From: milarin Date: Tue, 17 Jan 2023 09:16:12 +0100 Subject: [PATCH] Revert "make AnimeEpisode indexable for maps" This reverts commit 7701a09a0de0860ad92c0ae6b85cec67d064d0c5. --- 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 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, } }