diff --git a/envvars.go b/envvars.go index 5150ddc..296ff2d 100644 --- a/envvars.go +++ b/envvars.go @@ -19,11 +19,8 @@ var ( AnimePath = envvars.String("ANIME_PATH", "") - AnimeEpFilepathPattern = envvars.Object( - "EPISODE_FILEPATH_PATTERN", - template.Must(template.New("anime-episode-filepath-pattern").Parse(`{{.Anime.Title.UserPreferred}}/{{.Anime.Title.UserPreferred}} Episode {{.Episode}}.{{.Ext}}`)), - template.New("anime-episode-filepath-pattern").Parse, - ) + AnimeEpFilepathPatternStr = envvars.String("EPISODE_FILEPATH_PATTERN", `{{.Anime.Title.UserPreferred}}/{{.Anime.Title.UserPreferred}} Episode {{.Episode}}.{{.Ext}}`) + AnimeEpFilepathPattern = template.Must(template.New("EPISODE_FILEPATH_PATTERN").Parse(AnimeEpFilepathPatternStr)) // essential torrent properties