Fix: incorrect MIDI pathing

This commit is contained in:
kayos@tcp.direct 2024-05-08 02:24:23 -07:00
parent 80c532eaa6
commit 94bb3ca731
Signed by: kayos
GPG Key ID: 4B841471B4BEE979
2 changed files with 2 additions and 3 deletions

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

@ -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":