From 7e0ab6eddb96ee5ef73dd86cf4fead258d2a7dcf Mon Sep 17 00:00:00 2001 From: Matt Baer Date: Wed, 30 Mar 2022 23:58:07 -0400 Subject: [PATCH] Don't log errors for .tmpl files when parsing audio files --- cmd/cdr/generate.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/cdr/generate.go b/cmd/cdr/generate.go index 7a7fe4e..9fead75 100644 --- a/cmd/cdr/generate.go +++ b/cmd/cdr/generate.go @@ -29,7 +29,7 @@ func newMixtape(wd string) (*cdr.Mixtape, error) { c := 1 filepath.Walk(wd, func(path string, i os.FileInfo, err error) error { - if !i.IsDir() && !strings.HasPrefix(i.Name(), ".") && i.Name() != "index.html" { + if !i.IsDir() && !strings.HasPrefix(i.Name(), ".") && i.Name() != "index.html" && !strings.HasSuffix(i.Name(), ".tmpl") { t, err := cdr.NewTrack(i.Name()) if err != nil { log.Printf("Skipping track %s: %v", i.Name(), err)