refactor: move track download to a different function

This commit is contained in:
2026-02-19 16:44:54 +01:00
parent 41e2484b2a
commit a85812a1b8
3 changed files with 25 additions and 18 deletions

View File

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