diff --git a/internal/collect/collection.go b/internal/collect/collection.go index 6c4e669..0ea0f4c 100644 --- a/internal/collect/collection.go +++ b/internal/collect/collection.go @@ -158,7 +158,7 @@ func link(sample *Sample, kp string) { defer lockMap[sample.Path].Unlock() slog := log.With().Str("caller", sample.Path).Logger() - finalPath := kp + sample.Name + finalPath := filepath.Join(kp, sample.Name) slog.Trace().Msg(finalPath) err := util.FreshLink(finalPath) if err != nil && !os.IsNotExist(err) { diff --git a/internal/collect/parse.go b/internal/collect/parse.go index 18c1838..c59853a 100644 --- a/internal/collect/parse.go +++ b/internal/collect/parse.go @@ -346,8 +346,7 @@ func Process(entry fs.DirEntry, dir string) (*Sample, error) { case "midi", "mid": if !config.NoMIDI { s.Types[TypeMIDI] = struct{}{} - midi. - Library.IngestMIDI(s) + Library.IngestMIDI(s) } case "wav":