diff --git a/anime_episode_filepath.go b/anime_episode_filepath.go index fe3d5e3..0037705 100644 --- a/anime_episode_filepath.go +++ b/anime_episode_filepath.go @@ -4,14 +4,21 @@ import ( "path/filepath" "strings" + "git.milar.in/milarin/anilist" "git.milar.in/nyaanime/model" ) +type AnimePathPatternData struct { + Anime *anilist.Media + Episode int + Ext string +} + func GetAnimeEpFilepath(animeEp model.AnimeEpisode, ext string) string { ext = strings.TrimPrefix(ext, ".") tmplData := AnimePathPatternData{ - Title: animeEp.Anime.Title, + Anime: animeEp.Anime, Episode: animeEp.Episode, Ext: ext, }