make AnimeEpisode indexable for maps
This commit is contained in:
parent
51c282652a
commit
7701a09a0d
@ -3,6 +3,6 @@ package model
|
||||
import "git.milar.in/milarin/anilist"
|
||||
|
||||
type AnimeEpisode struct {
|
||||
Anime *anilist.Media
|
||||
Anime anilist.Media
|
||||
Episode int
|
||||
}
|
||||
|
@ -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,
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user