1
0
mirror of https://github.com/thebaer/cdr.git synced 2024-11-14 17:21:01 +00:00

Don't log errors for .tmpl files when parsing audio files

This commit is contained in:
Matt Baer 2022-03-30 23:58:07 -04:00
parent 13cb66a023
commit 7e0ab6eddb

View File

@ -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)