make AnimeEpisode indexable for maps

This commit is contained in:
milarin 2023-01-17 09:14:10 +01:00
parent 51c282652a
commit 7701a09a0d
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,
} }
} }