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:
parent
13cb66a023
commit
7e0ab6eddb
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user