Revert "make AnimeEpisode indexable for maps"

This reverts commit 7701a09a0d.
This commit is contained in:
milarin 2023-01-17 09:16:12 +01:00
parent 7701a09a0d
commit d3fc649dad
2 changed files with 2 additions and 2 deletions

View File

@ -3,6 +3,6 @@ package model
import "git.milar.in/milarin/anilist" import "git.milar.in/milarin/anilist"
type AnimeEpisode struct { type AnimeEpisode struct {
Anime anilist.Media Anime *anilist.Media
Episode int Episode int
} }

View File

@ -32,7 +32,7 @@ func (f *ParsedFile) GetResolution() Resolution {
func (f *ParsedFile) AnimeEpisode() AnimeEpisode { func (f *ParsedFile) AnimeEpisode() AnimeEpisode {
return AnimeEpisode{ return AnimeEpisode{
Anime: *f.Anime, Anime: f.Anime,
Episode: f.Episode, Episode: f.Episode,
} }
} }