From 344221ce5057037de0d962d34fd11e4361def822 Mon Sep 17 00:00:00 2001 From: milarin Date: Mon, 16 Jan 2023 00:45:58 +0100 Subject: [PATCH] fixed filepath pattern problems --- envvars.go | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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