feat(song): add FLAC tags

This commit is contained in:
Mathis Maquenne
2024-10-14 16:22:44 +02:00
parent 68f0b5c3e4
commit cfa53da6ae
9 changed files with 210 additions and 108 deletions
+2 -1
View File
@@ -7,6 +7,7 @@ import (
"strings"
"github.com/mathismqn/godeez/internal/deezer"
"github.com/mathismqn/godeez/internal/tags"
"github.com/spf13/cobra"
)
@@ -102,7 +103,7 @@ var downloadCmd = &cobra.Command{
}
fmt.Printf("\r Downloading %s... DONE\n", songTitle)
if err := deezer.AddTags(album, song, filePath); err != nil {
if err := tags.Add(album, song, filePath); err != nil {
fmt.Fprintf(os.Stderr, "Error: could not add tags to song: %v\n", err)
}
}