From a088c9b3c480b2bd599fa622927fe06a4aa4117f Mon Sep 17 00:00:00 2001 From: Niklas Kapelle Date: Wed, 10 Jun 2026 16:43:35 +0200 Subject: [PATCH] don't search for genere on info command --- internal/ripsort.go | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/internal/ripsort.go b/internal/ripsort.go index 9ce3270..4ce2b3d 100644 --- a/internal/ripsort.go +++ b/internal/ripsort.go @@ -7,7 +7,6 @@ import ( "os" "path/filepath" - "git.kapelle.org/niklas/ripsort/internal/clients/musicbrainz" "git.kapelle.org/niklas/ripsort/internal/metadata" ) @@ -19,14 +18,6 @@ func Scan(filePath string) error { return err } - mbc := musicbrainz.NewMusicBrainzClient() - - genre, err := metadata.SearchForGenre(mbc, info) - if err != nil { - slog.Error("Failed to search for genere", "err", err) - return err - } - if info.Title != nil { fmt.Printf("Title: %s\n", *info.Title) } @@ -42,7 +33,7 @@ func Scan(filePath string) error { if info.Comment != nil { fmt.Printf("Comment: %s\n", *info.Comment) } - fmt.Printf("Genre: %s\n", genre) + fmt.Printf("Genre: %s\n", info.Genre) sortPath := pathForFile(filePath, *info) fmt.Printf("Sort path: %s\n", sortPath)