don't search for genere on info command
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user