diff --git a/envvars.go b/envvars.go index 2469a2e..f22512d 100644 --- a/envvars.go +++ b/envvars.go @@ -19,7 +19,7 @@ var ( TelegramBotToken = envvars.String("TELEGRAM_API_TOKEN", "") TelegramChatID = envvars.Int64("TELEGRAM_CHAT_ID", 0) TelegramOrganizeMessagePatternStr = logic.EscSeqReplacer.Replace(envvars.String("TELEGRAM_ORGANIZE_MESSAGE_PATTERN", `Download finished\n\n{{.Title.UserPreferred}} episode {{.Episode}}`)) - TelegramOrganizeMessagePattern = template.Must(template.New("telegram-organize-message-pattern").Parse(TelegramOrganizeMessagePatternStr)) + TelegramOrganizeMessagePattern = template.Must(template.New("TELEGRAM_ORGANIZE_MESSAGE_PATTERN").Parse(TelegramOrganizeMessagePatternStr)) Uid = envvars.Object("UID", 1000, func(s string) (int, error) { if uid, err := strconv.Atoi(s); err == nil {