mirror of
https://github.com/zhaarey/apple-music-downloader.git
synced 2025-10-23 15:11:05 +00:00
fix: cover embed
This commit is contained in:
2
main.go
2
main.go
@@ -578,8 +578,8 @@ func ripTrack(track *task.Track, token string, mediaUserToken string) {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Println("Failed to write cover.")
|
fmt.Println("Failed to write cover.")
|
||||||
}
|
}
|
||||||
tags = append(tags, fmt.Sprintf("cover=%s", track.CoverPath))
|
|
||||||
}
|
}
|
||||||
|
tags = append(tags, fmt.Sprintf("cover=%s", track.CoverPath))
|
||||||
}
|
}
|
||||||
tagsString := strings.Join(tags, ":")
|
tagsString := strings.Join(tags, ":")
|
||||||
cmd := exec.Command("MP4Box", "-itags", tagsString, trackPath)
|
cmd := exec.Command("MP4Box", "-itags", tagsString, trackPath)
|
||||||
|
|||||||
Reference in New Issue
Block a user