fixed filepath pattern problems

This commit is contained in:
milarin 2023-01-16 00:45:58 +01:00
parent 53bbded00f
commit 344221ce50

View File

@ -19,11 +19,8 @@ var (
AnimePath = envvars.String("ANIME_PATH", "") AnimePath = envvars.String("ANIME_PATH", "")
AnimeEpFilepathPattern = envvars.Object( AnimeEpFilepathPatternStr = envvars.String("EPISODE_FILEPATH_PATTERN", `{{.Anime.Title.UserPreferred}}/{{.Anime.Title.UserPreferred}} Episode {{.Episode}}.{{.Ext}}`)
"EPISODE_FILEPATH_PATTERN", AnimeEpFilepathPattern = template.Must(template.New("EPISODE_FILEPATH_PATTERN").Parse(AnimeEpFilepathPatternStr))
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,
)
// essential torrent properties // essential torrent properties