mirror of
https://github.com/Superredstone/spotiflac-cli.git
synced 2026-03-07 20:18:07 +01:00
refactor: move track download to a different function
This commit is contained in:
@@ -44,6 +44,8 @@ func (app *App) PrintMetadata(url string) error {
|
||||
}
|
||||
|
||||
func (app *App) EmbedMetadata(file string, metadata TrackMetadata) error {
|
||||
app.log("Embedding metadata")
|
||||
|
||||
tag, err := id3v2.Open(file, id3v2.Options{Parse: true})
|
||||
if err != nil {
|
||||
return err
|
||||
|
||||
Reference in New Issue
Block a user